Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
prakash_satya59
Frequent Visitor

Want MoM% Change, Quarter % change like given image

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.

 

prakash_satya59_0-1667494497818.png

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

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]))

vstephenmsft_0-1667547459679.png

 

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)

vstephenmsft_1-1667547544674.png

 

 

 

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.

View solution in original post

2 REPLIES 2
prakash_satya59
Frequent Visitor

Thanks Stephen

v-stephen-msft
Community Support
Community Support

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]))

vstephenmsft_0-1667547459679.png

 

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)

vstephenmsft_1-1667547544674.png

 

 

 

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.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors