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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Power BI matrix total incorrect

Hello Everyone,

I want to create a measure that returns the Total of the Change (2020-2019) column. The measure I'm using calculates the difference between 2020 and 2019 when all values are present in the row context.  I would like it to do the same when calculating the Total. Presently the Total of -1,349,982 doesn't match the sum of what is in the rows in the matrix.

This is the formula I am using:
Change (2020-2019) =
IF(NOT( ISBLANK(X9[2020 Volume_Sent])),
X9[2020 Volume_Sent] - X9[2019 Volume_Sent]
)

machelm_0-1609779686584.png

 


I appreciate your help,

Machel.
1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Anonymous 

Try this measure that uses the one you already have:

Change (2020-2019) TOT =
SUMX ( DISTINCT ( Table1[Month] ), [Change (2020-2019)] )

 where  Table1[Month]  is the first (leftmost) field in your table visual

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

View solution in original post

2 REPLIES 2
AlB
Community Champion
Community Champion

Hi @Anonymous 

Try this measure that uses the one you already have:

Change (2020-2019) TOT =
SUMX ( DISTINCT ( Table1[Month] ), [Change (2020-2019)] )

 where  Table1[Month]  is the first (leftmost) field in your table visual

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

Anonymous
Not applicable

Thanks @AlB ! This got the job done. I really appreciate the help.

 

Cheers,

 

Machel

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.