cancel
Showing results 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.

## 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
Community Support

Hi @Brenden

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

Sample data

Calendar table

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

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.

Community Support

Hi @Brenden

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

Sample data

Calendar table

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

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.

Announcements

#### 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

#### Power BI Monthly Update - April 2024

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

#### Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors