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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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 ACCEPTED SOLUTION

Thanks but I found the right formula

 

Diff$ Budget = Var _MTDA = CALCULATE([Net USD average per Day]) return _MTDA-[Net USD average per Day for Budget 2021]







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

Connect on Linkedin
linkedin.com/in/netanel-shriki

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @netanel 

What does the measue   [Net USD average per Day]  look like in your table visual? Make sure the total value of the measure in the table is correct.

You can try the following formula:

Net USD average per Day for Budget 2021 =
CALCULATE (
    AVERAGEX ( Table, [Net USD average per Day] ),
    'Revenues DB'[Data Source] IN { "Budget 2021" }
)

or add filter ( 'Revenues DB'[Data Source] IN { "Budget 2021" } ) to measure [Net USD average per Day]  directly .

 

Best Regards,
Community Support Team _ Eason

 

Thanks but I found the right formula

 

Diff$ Budget = Var _MTDA = CALCULATE([Net USD average per Day]) return _MTDA-[Net USD average per Day for Budget 2021]







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

Connect on Linkedin
linkedin.com/in/netanel-shriki

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.