Quantcast
Channel: Service topics
Viewing all articles
Browse latest Browse all 61665

Previous Year - Measures - Non Contiguous Date Selection

$
0
0

I have created Previous Year Measure using different formulas(in Tabular SSAS Cube) as below:

but when I select them in PowerBI for non-contiguous months, nothing shows up, the service keeps shwoing 'In Progress' circle

 

PrevYear:=CALCULATE (sum( 'Table'[Column]), SAMEPERIODLASTYEAR( 'Time Period'[Month End]))

 

PrevYear:=sumx('TableName',CALCULATE([Column], DATEADD('Time Period'[Month End],-1,Year)))

 

Any help on this is appreciated.

 

Thanks.


Viewing all articles
Browse latest Browse all 61665

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>