cancel
Showing results for 
Search instead for 
Did you mean: 
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
Community Support
Community Support

Re: Card visual - calculate difference between actual and budget

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

Re: Card visual - calculate difference between actual and budget

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

 

This is the data set I am using.

Community Support
Community Support

Re: Card visual - calculate difference between actual and budget

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

Re: Card visual - calculate difference between actual and budget

Community Support
Community Support

Re: Card visual - calculate difference between actual and budget

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
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ Integration Forum Launch

‘Better Together’ Integration Forum Launch

We've launched a how-to forum where you can learn about how Power BI integrates with other Power Platform products.

Top Solution Authors
Top Kudoed Authors