Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
hello,
I need to create a measure that will show comparison for a previous period when the data is monthly/quarterly of Yearly.
So far i created one that gives correct compariosn MoM but when 2 or more are selected the resutls are completely off as I used PREVIOUSMONTH. is there any function that can do PREVIOUSPERIOD?
My measure:
Solved! Go to Solution.
@Tani4ka , Previous month take first avaiable month. So your Qtr and yeat comparison will not work.
Do Switch the measure using isinscope
How to Switch Subtotal and Grand Total in Power BI | Power BI Tutorials| isinscope: https://youtu.be/smhIPw3OkKA
Switch(true(),
isinscope(Date[Month]) , [MoM%],
isinscope(Date[Qrt]) , [QOQ%],
isinscope(Date[Year]) , [YoY%])
You can have full formula, if you do have all measures
thank you for your responce but I need a bit more clarity on how to use it.
I've update the measure but is gives rather 0 results
I realised were the problem was - i used incorred date columns.
The measure now works well but when i add a custom date columns to sort the data correctly i get 0 resutls. It only react to the main date column and the order is not correct. I tried updating the date columns in the measure to the cutom created but no luck. Any suggestions?
This is not sorted - i need to remove auto date/time tick box and swith to custom date columns. All works perfectly now. Thanks a million for your help!
@Tani4ka , Previous month take first avaiable month. So your Qtr and yeat comparison will not work.
Do Switch the measure using isinscope
How to Switch Subtotal and Grand Total in Power BI | Power BI Tutorials| isinscope: https://youtu.be/smhIPw3OkKA
Switch(true(),
isinscope(Date[Month]) , [MoM%],
isinscope(Date[Qrt]) , [QOQ%],
isinscope(Date[Year]) , [YoY%])
You can have full formula, if you do have all measures
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 31 | |
| 27 | |
| 24 |