Hi,
I have written PREVIOUSMONTH() in below measure:
which you can see is incorrent, but when I add Year from my calendar, then year wise and monthwise it is showing correct result like below:
So, why it is hapenning here? actually I don't want to use Year column in my table and want the correct result, but it is showing wrong when I remove Year column from table.
Solved! Go to Solution.
Hi,
I got the solution here By @amitchandak
(1) Power BI Offset Compare Categories, Time Intelligence MOM, QOQ, YOY - YouTube
I have used below DAX and it works fine for me.
Previous Month Sales = CALCULATE ( SUM ( Orders [Sales] ), OFFSET (- 1 , ALLSELECTED ( 'Orders' [Month Name] , Orders [Month Num] ), ORDERBY ( 'Orders' [Month Num] , ASC ), KEEP ) )
Great Help
Thank you,
Sandip Ghosh
in that case you need new features OFFSET
Hi,
I don't understand it, can you please give me the syntax or modified DAX what I was using?
Hi,
I got the solution here By @amitchandak
(1) Power BI Offset Compare Categories, Time Intelligence MOM, QOQ, YOY - YouTube
I have used below DAX and it works fine for me.
Previous Month Sales = CALCULATE ( SUM ( Orders [Sales] ), OFFSET (- 1 , ALLSELECTED ( 'Orders' [Month Name] , Orders [Month Num] ), ORDERBY ( 'Orders' [Month Num] , ASC ), KEEP ) )
Great Help
Thank you,
Sandip Ghosh
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
User | Count |
---|---|
123 | |
74 | |
66 | |
53 | |
53 |
User | Count |
---|---|
199 | |
104 | |
88 | |
79 | |
77 |