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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Brenden
Advocate II
Advocate II

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
v-xinruzhu-msft
Community Support
Community Support

Hi @Brenden 

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
v-xinruzhu-msft
Community Support
Community Support

Hi @Brenden 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors