Quantcast
Viewing all articles
Browse latest Browse all 217197

DAX query to display prior month result

Hello,

 

I want to get the Previous month Sales Count. I need to use only DAX queries to achieve this. I used the following DAX queries. It didn't give me the desired result. Can anyone help me with this?  

 

PriorMonthCount = CALCULATE(COUNT(FactTable[Column]),PREVIOUSMONTH(DimTable[Date]))

 

PriorMonthCount = CALCULATE(COUNTA(FactTable[Column]),PARALLELPERIOD(DimTable[Date],-1,MONTH))

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 217197

Trending Articles