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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Measure sum per month and year

Hi,

 

I would like PowerBI to calculate the delta between the Budget and the GP per month and per year.

 

The calender, budget and GP are in different tables.

 

Could anybody help me with the DAX formula to calculate this?

 

Thanks in advance!

 

Nikolaj

1 ACCEPTED SOLUTION

Hi @Anonymous ,

If you have a month slicer or year slicer, just need to create a measure like this:

Diff = SUM(Budget[AMS BUDGET]) - SUM(GP[GP])

diff.png

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Join Budget and GP both with dates. If needed create a more common dimension and analyze with help from the common dimension

https://www.sqlbi.com/articles/the-importance-of-star-schemas-in-power-bi/

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Anonymous
Not applicable

Hi,

 

Hereby the budget sample

 

NBalak_0-1618231632946.png

 

The GP stated per orderline in an excel file, powerbi doesnt calculate this.

 

As you can see the Budget is on month level and the GP can also be sliced on month with a calendar table.

 

Thanks in advance for any help.

Hi @Anonymous ,

If you have a month slicer or year slicer, just need to create a measure like this:

Diff = SUM(Budget[AMS BUDGET]) - SUM(GP[GP])

diff.png

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.