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
eliasayyy
Memorable Member
Memorable Member

total not correct

hello everyone,
i have a matrix table, and formula

correct = IF(HASONEVALUE('Product Revenue'[Item]),[Total expense],SUMX(VALUES('Product Revenue'[Item]),[Total expense]))

 

annonymous1999_0-1671723580981.png

 

the column is correct, but row isnt correct, how can i solve? example first row, 30.45 + 0.01 = 30.46 not 91.37

 

1 ACCEPTED SOLUTION
eliasayyy
Memorable Member
Memorable Member

just created another measure,

correct 1 = IF(HASONEVALUE('Product Revenue'[product]),[Total expense],SUMX(VALUES('Product Revenue'[product]),[Total expense]))

correct 2 = IF(HASONEVALUE('Product Revenue'[item]),[correct 1],SUMX(VALUES('Product Revenue'[Item]),[correct 1]))

View solution in original post

3 REPLIES 3
eliasayyy
Memorable Member
Memorable Member

just created another measure,

correct 1 = IF(HASONEVALUE('Product Revenue'[product]),[Total expense],SUMX(VALUES('Product Revenue'[product]),[Total expense]))

correct 2 = IF(HASONEVALUE('Product Revenue'[item]),[correct 1],SUMX(VALUES('Product Revenue'[Item]),[correct 1]))
FreemanZ
Super User
Super User

1 What filter context do you have, including row/column of the matrix, slicer, filter pane?

2) How is [Total expense] defined?

only filter is date i use date slicer,

Total expense = IF([Item Count per product]>1,[Price] * [Rev per Item] * [Item Count per product],[Price] * [Rev per Item])

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.