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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Calculate % change of yesterday VS Historical Daily Average

Hello,

This is sort of a part 2 to a previous question I have posed. 
https://community.fabric.microsoft.com/t5/Desktop/Average-Daily-Volume-within-Date-Range/td-p/335584...

 

I need to display on a card the % change of ticket volume created Yesterday (dynamic - update each day) compared to a Historical Daily Average volume (the linked topic above).

My data is fairly simple;

Ticket ID, Create Date, (some other unconsequential columns..)

Desired result:
"+4%" (Yesterday's volume divided by Historical Daily Average (within a static date range))

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

Based on your expression, I created the following sample data and solution.

Sample data 

vxinruzhumsft_0-1690769427843.png

 

Calendar table

vxinruzhumsft_1-1690769445939.png

Then you can refer to the following measures, I create a measure to assume that the data of yesterday is 50.

Average = CALCULATE(AVERAGE('Table'[Sales]),FILTER('Calendar',[Date]>=DATE(2016,1,1)&&[Date]<=DATE(2017,12,31)))

Yesterday = 50

% Change = DIVIDE([Yesterday]-[Average],[Average])

Output

vxinruzhumsft_2-1690769652064.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

If the solution above cannot solve your problem, can you offer some sample data or picture so that can provide some useful suggestion.

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous 

Based on your expression, I created the following sample data and solution.

Sample data 

vxinruzhumsft_0-1690769427843.png

 

Calendar table

vxinruzhumsft_1-1690769445939.png

Then you can refer to the following measures, I create a measure to assume that the data of yesterday is 50.

Average = CALCULATE(AVERAGE('Table'[Sales]),FILTER('Calendar',[Date]>=DATE(2016,1,1)&&[Date]<=DATE(2017,12,31)))

Yesterday = 50

% Change = DIVIDE([Yesterday]-[Average],[Average])

Output

vxinruzhumsft_2-1690769652064.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

If the solution above cannot solve your problem, can you offer some sample data or picture so that can provide some useful suggestion.

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.