Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hello I am trying to show a month by month comparison betweeen total views. I have been looking at youtube and this channel as well for answers and im not sure if I dont have enough data or what exactly I am doing wrong. I only have 3 months worth of data so maybe thats my issue
I started out with just one dataset "data" which has a column of "Total Views"
My first attempt i did:
Solved! Go to Solution.
Hi @Anonymous ,
I tried this and it worked on my side:
PrevMonthRev = CALCULATE(sum(data[Total Views]),PREVIOUSMONTH('data'[Date].[Date]))
You may simply use this:
total by month LM = CALCULATE(SUM('data'[Total Views]),PARALLELPERIOD ( 'data'[Date].[Date], -1, MONTH ))
Here is the final output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
I tried this and it worked on my side:
PrevMonthRev = CALCULATE(sum(data[Total Views]),PREVIOUSMONTH('data'[Date].[Date]))
You may simply use this:
total by month LM = CALCULATE(SUM('data'[Total Views]),PARALLELPERIOD ( 'data'[Date].[Date], -1, MONTH ))
Here is the final output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Awesome, this works perfectly!! Thank you!!
CALCULATE(SUM(data[Total Views]),DATEADD(data[Date].[Date],-1,MONTH),ALL(data[Date]))
Since this question is on DAX, you would be more likely to get an answer by posting in the DAX forum (DAX Commands and Tips - Microsoft Power BI Community).
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 11 | |
| 8 | |
| 5 | |
| 5 | |
| 5 |