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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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