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
garycarters
Helper I
Helper I

Card visual - calculate difference between actual and budget

I am trying to present a visual that shows the difference between average daily spend per month compared to the budgeted spend in a card.

 

I can display the Daily average with a column such as 

DailyAvgVBudget = CALCULATE(SUM([Spend])/AVERAGE([MonthWorkingDays])).
 
However, if I try to calcuate the difference by subtracting the budgeted daily figure (either as a constant or retrieved from a field) I get a strange result nowhere near the expected answer.
 
Things I've tried include;
DailyAvgVBudget = CALCULATE(SUM([Spend])/AVERAGE([MonthWorkingDays])) - 37859
 
DailyAvgVBudget = CALCULATE(SUM([Spend])/AVERAGE([MonthWorkingDays]) - AVERAGE(Budget[Daily]) )
 

Am I trying to achieve the impossible?  Surely not...

 

5 REPLIES 5
v-frfei-msft
Community Support
Community Support

Hi @garycarters ,

 

Could you please share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

https://1drv.ms/u/s!Amo6JxqZkuIlad7zkbxiKSakac0 

 

This is the data set I am using.

Hi @garycarters ,

 

Seemed that I cannot access the file by the link. Could you please share it again?

333.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @garycarters ,

 

Same error..

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

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.