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
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
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.