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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Measure causes strange behavior in Table Visual

I have a model with three related tables that I'm attempting to build some measures off of.

 

One table represents the existing breakdown of program area for a site. So what the client "has". The other table represents program area the client might add to the sites in the future. I have a calendar table that they both have a relationship to. There are look-up tables for classification of the area(s) per site, so there are mutliple rows per site (in each table).

PWrBI_totals.PNGI have a measure that calculates thetotal of the Existing Program Area:

Existing Conditions Total = 

CALCULATE(

    SUM(prog_SiteProgramExisting[Program Area]),

    VALUES(site_Sites[Abbreviated Name]),

ALL('Date'[Date])

)
I have another measure that calculates the running total of the Proposed Program Area and adds the total from the above measure, so that you should have cumlative total of both the existing and what has been added (or subtracted):
Site Program Proposed Gross Running Total = 

CALCULATE(

    SUM(prog_SiteProgramStages[Program Area Gross]),

    FILTER(

     ALL(prog_SiteProgramStages),

prog_SiteProgramStages[Date Program Available on Site] <= MAX(prog_SiteProgramStages[Date Program Available on Site])

),

VALUES(site_Sites[Abbreviated Name])

) + [Existing Conditions Total]
All the numbers calculate correctly. Where it gets weird is when I add the second measure to table that is supposed to show the rows of "new work". Here is a pic of what I expect the table to look like:
image.png

 

However, when I add the measure that should give me the existing + new, I get a ton of extra rows, that are non-sensical to me. I assume it has to do with all the "Existing" row data, but I was suprised that adding a measure would cause those rows to propegate.
image.png

The numbers at the "end" of the table are still all correct, I'm struggling with how to properly filter the visual, or do I need to modify my measure(s) in some way?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Well, I kept reading and experimenting, and solved this one on my own. Turns out I needed to also add the additional value within the original calculate context. I had it in my head that I would want that operation outside of the Calculate Context, but after getting it to all work using a different (less elegant) approach, I went back and said "well, lets try putting the addition within the same calculate context" and viola! The visual started behaving the way I wanted it to, and the math was still all correct! Yay!

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Well, I kept reading and experimenting, and solved this one on my own. Turns out I needed to also add the additional value within the original calculate context. I had it in my head that I would want that operation outside of the Calculate Context, but after getting it to all work using a different (less elegant) approach, I went back and said "well, lets try putting the addition within the same calculate context" and viola! The visual started behaving the way I wanted it to, and the math was still all correct! Yay!

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.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.