cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
netanel
Post Prodigy
Post Prodigy

Budget calculation

Hello everyone,
I try to do a simple calculation of:
1. Daily average Less than average daily budget.

Diff$ Budget = 'Revenues DB'[Net USD average per Day] - [Net USD average per Day for Budget 2021]
And the numbers come out wrong.
 
2. When I do the same thing
Daily average less than last month's daily averages
Diff $ = 'Revenues DB'[Net USD average per Day]-[Net USD average per Day LM]
 The numbers come out excellent.
 
Attaches an example of the shape of the numbers in my database
(I have a side table of dates)
 
Perhaps these formulas will help understanding:
 
AVG Budget
 
Net USD average per Day for Budget 2021 =
CALCULATE(
    [Net USD average per Day],
    'Revenues DB'[Data Source] IN { "Budget 2021" }
)
 
LM AVG
 
Net USD average per Day LM =
AVERAGEX(
    KEEPFILTERS(VALUES('Date'[Date].[Day])),
    CALCULATE(SUM('Revenues DB'[Net USD]),DATEADD('Date'[Date],-1,MONTH)
))
 
 
1.JPG
 
 

 








Did I answer your question?
Mark my post as a solution!
Appreciate your Kudos!

Connect on Linkedin
linkedin.com/in/netanel-shriki
1 REPLY 1
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. Paste the data into a table in your post or use one of the file services. Please show the expected outcome.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors