Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hi there,
I have a Total Income and Total Deduction DAX measures and they work fine but I'm trying to show the same values compared to last month.
I'm using these formulas for totals:
Solved! Go to Solution.
For time intelligence prefer using date calendar table
Prev Month Income = CALCULATE([Total Income], DATEADD('adte'[Date], -1, MONTH))
or
Prev Month Income = CALCULATE([Total Income], datesmtd(DATEADD('adte'[Date], -1, MONTH)))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s.
Refer
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin
For time intelligence prefer using date calendar table
Prev Month Income = CALCULATE([Total Income], DATEADD('adte'[Date], -1, MONTH))
or
Prev Month Income = CALCULATE([Total Income], datesmtd(DATEADD('adte'[Date], -1, MONTH)))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s.
Refer
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin
Test the dateadd clause to see if it's returning blanks.
Yes. It's returning blank
Hopefully it's sorted now. The dates that DATEADD returns must already exist in the date column you use otherwise it returns blank. That's why a date table works (This can still return blanks for the same reason but not if you set the date table up properly)
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
67 | |
67 | |
42 | |
42 |
User | Count |
---|---|
46 | |
40 | |
28 | |
27 | |
26 |