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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
RemkoS
Helper I
Helper I

Table based on 2 measures is not showing all values

I have created a table with 2 calculated, running totals.

The y-axis is the time axis, showing the successive (sprint) numbers.

 

Measure 1 ('Actual spent') does NOT contain (calculated) values for every sprint.

Cumulatief gerealiseerd + gepland = 
CALCULATE(
    SUM('Work items'[Totaal]),
    FILTER(
        ALLSELECTED('Work items'),
        'Work items'[Iteration Path] <= MAX('Work items'[Iteration Path])
    )
)

 

Measure 2 ('Budget') DOES contain (calculated) values for every sprint.

Cumulatief budget = 
CALCULATE(
    SUM('Budget'[Budget]),
    FILTER(
        ALLSELECTED('Work items'),
        'Work items'[Iteration Path] <= MAX('Work items'[Iteration Path])
    )
)

 

The problem is that 'Budget' does not calculate correctly: where 'Actual spent' does not contain any value, 'Budget' is not summed at all.

 

In the image below the budget should be a straight line: 41 hours every sprint.
image.png

This is the data model:

RemkoS_0-1598803772715.png

How can I fix this?

1 ACCEPTED SOLUTION

Hi Greg!

 

I fixed it myself by modifying the formula for the running Budget:

Cumulatief budget = 
CALCULATE(
    SUM('Budget'[Budget]),
    FILTER(
        ALLSELECTED('Budget'),
        'Budget'[Iteration Path] <= MAX('Budget'[Iteration Path])
    )
)

 

I had used the Work Items Iteration Path (Sprint number) instead of the Budget Iteration Path.

Now it all looks well! 

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

@RemkoS - It is difficult to say without sample source data to test with, however, if you want a constant budget value, then you need to not make the budget calculation cumulative, which is what you are doing with your budget calculation. Try simply:

Cumulatief budget = 
    SUM('Budget'[Budget])

The part with the FILTER, etc, you are summing up the budget for all prior weeks as well as including the current week. 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hi Greg!

 

Thanks for the reply! I deliberately used this formula since I want to calculate the RUNNING total budget.

For the visible Area Path ('Nieuwe Klanten') the budget is same per area, but for other Area Paths it differs per sprint.

 

Is there a way for me to upload the source data to this forum?

Hi Greg!

 

I fixed it myself by modifying the formula for the running Budget:

Cumulatief budget = 
CALCULATE(
    SUM('Budget'[Budget]),
    FILTER(
        ALLSELECTED('Budget'),
        'Budget'[Iteration Path] <= MAX('Budget'[Iteration Path])
    )
)

 

I had used the Work Items Iteration Path (Sprint number) instead of the Budget Iteration Path.

Now it all looks well! 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.