The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Dear Team
I want to know How to get % MOM change, quarterly average and % qtr change as highlighte in image
my measure is "Average bill rate"
I will be really gratefull. Its very urgent requirement.
Solved! Go to Solution.
Hi @prakash_satya59 ,
Here's my solution.
1.Create a calendar table.
Calendar = ADDCOLUMNS(CALENDAR(DATE(2021,8,1),DATE(2022,12,31)),"YearQuarter",YEAR([Date])&"-"&QUARTER([Date]))
2.Create the following measures.
% MOM change =
var _previous=CALCULATE([Average Bill Rate],PREVIOUSMONTH('Calendar'[Date]))
return DIVIDE([Average Bill Rate]-_previous,_previous)
Quarterly Average = AVERAGEX(FILTER(ALLSELECTED('Calendar'),[YearQuarter]=MAX('Calendar'[YearQuarter])),[Average Bill Rate])
Quarter % change = var _previous=CALCULATE([Average Bill Rate],PREVIOUSQUARTER('Calendar'[Date]))
return DIVIDE([Quarterly Average]-_previous,_previous)
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks Stephen
Hi @prakash_satya59 ,
Here's my solution.
1.Create a calendar table.
Calendar = ADDCOLUMNS(CALENDAR(DATE(2021,8,1),DATE(2022,12,31)),"YearQuarter",YEAR([Date])&"-"&QUARTER([Date]))
2.Create the following measures.
% MOM change =
var _previous=CALCULATE([Average Bill Rate],PREVIOUSMONTH('Calendar'[Date]))
return DIVIDE([Average Bill Rate]-_previous,_previous)
Quarterly Average = AVERAGEX(FILTER(ALLSELECTED('Calendar'),[YearQuarter]=MAX('Calendar'[YearQuarter])),[Average Bill Rate])
Quarter % change = var _previous=CALCULATE([Average Bill Rate],PREVIOUSQUARTER('Calendar'[Date]))
return DIVIDE([Quarterly Average]-_previous,_previous)
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
138 | |
106 | |
101 | |
74 | |
59 |
User | Count |
---|---|
259 | |
124 | |
114 | |
98 | |
87 |