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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
mkoontz
Frequent Visitor

Total for measure column

Power BI 101 question here. Need help getting the correct total to show in a column that is a measure.

 

Measure 1SUM(TABLE1 [Project_Actual])

Measure 2 (to get Measure 1 from previous month) =

CALCULATE( [Measure 1],
FILTER( ALL( dimDate ),
dimDate[Period Rank] = MAX(dimDate[Period Rank]) - 1)
)

Measure 3 = [Measure 2] - [Measure 1]

 

When I export out to Excel and SUM up the column, the total looks great for Measure 3.

mkoontz_0-1621538471098.png

But in my Power BI report, it is just taking the difference between Measure 1 Total and Measure 2 Total instead of summing the column. Again, probably very basic, but I can't seem to get it.

mkoontz_1-1621538616086.png

Any help would be greatly appreciated. Thank you.

1 ACCEPTED SOLUTION
mkoontz
Frequent Visitor

I was able to fix this using the VALUES function you mentioned above, but just making a few changes. Thank you for the direction you gave me. I appreciate it.

 

SUMX(
Measure 3 =
VALUES(dimProject[Project Id]),
IF([Measure 1] = BLANK(), 0, [Measure 2] - [Measure 1])
)

View solution in original post

4 REPLIES 4
Fowmy
Super User
Super User

@mkoontz 

Can you try the following for Measure 3?

Measure 3 =
SUMX( 
    VALUES(dimDate[Period Rank]),
    [Measure 2] - [Measure 1]
)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

mkoontz
Frequent Visitor

Hi Fowmy,

Thank you for the quick reply. Unfortunately that did not work. 

 

Some more details on the report layout.

Project Id (dimProject)

8 measures (including the 3 above) from 2 different Fact Tables with relationships setup back to dimProject

@mkoontz 

Sharing a sample PBIX file will help understand the model.
You save it in google drive or one drive and share the link here.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

mkoontz
Frequent Visitor

I was able to fix this using the VALUES function you mentioned above, but just making a few changes. Thank you for the direction you gave me. I appreciate it.

 

SUMX(
Measure 3 =
VALUES(dimProject[Project Id]),
IF([Measure 1] = BLANK(), 0, [Measure 2] - [Measure 1])
)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.