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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rocky09
Solution Sage
Solution Sage

Matrix showing Wrong Totals

I am not sure what's wrong with this measure. But, showing wrong totals. Can anyone advise, how can I resolve this?

rocky09_0-1645712741332.png

Measure here:

 

products> = CALCULATE(
   
                    [Overall_Sales],
                    FILTER(ALL('Products'),[Overall_Sales]>350000)
                  ,                VALUES(Products[Product Name])
                    )

 

 

Thank you in advance,

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

Hi, @rocky09 

Try this:

products> =
CALCULATE (
    SUM ( 'Products'[_Overall_Sales] ),
    FILTER (
        ADDCOLUMNS ( 'Products', "_Overall_Sales", [Overall_Sales] ),
        [_Overall_Sales] > 350000
    )
)

If this doesn't work for you, please consider sharing more details about it. And It would be great if there is a sample file without any sesentive information here.

 

It makes it easier to give you a solution.

  1. Sample (dummy dataset) data as text, use the table tool in the editing bar
  2. Expected output from sample data
  3. Explanation in words of how to get from 1. to 2.

 

Best Regards,
Community Support Team _ Zeon Zheng

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

9 REPLIES 9
v-angzheng-msft
Community Support
Community Support

Hi, @rocky09 

Try this:

products> =
CALCULATE (
    SUM ( 'Products'[_Overall_Sales] ),
    FILTER (
        ADDCOLUMNS ( 'Products', "_Overall_Sales", [Overall_Sales] ),
        [_Overall_Sales] > 350000
    )
)

If this doesn't work for you, please consider sharing more details about it. And It would be great if there is a sample file without any sesentive information here.

 

It makes it easier to give you a solution.

  1. Sample (dummy dataset) data as text, use the table tool in the editing bar
  2. Expected output from sample data
  3. Explanation in words of how to get from 1. to 2.

 

Best Regards,
Community Support Team _ Zeon Zheng

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hvnter
Resolver I
Resolver I

Rocky,

 

Have you checked the relationships in your model?  

The Relatations are good

TheoC
Super User
Super User

hi @rocky09 

 

You can try the following

 

Measure = SUMX ( VALUES ( TableName[Region] ) , [Overall Sales] >350000 } )

 

Hope this helps.

Theo

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

@TheoC 
Thank you, I have also the Product Name column to add to the matrix. So, when I add Product Name, the above provided is not working.

Hi @rocky09 

 

Can you wrap the measure I gave you with CALCULATE ( [Measure] , ALLEXCEPT ( Table[Product Name] ) )?

 

Apologies.  On phone and can't test syntax.

 

Theo

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Thank you so much TheoC for helping me.
I tried it, but now, the visual broke.

rocky09_0-1645714988656.png

 

Hi @rocky09 

 

Are you able to do it with two measures? The first measure and then wrap the first measure with the CALCULATE ALLEXCEPT?

 

If it doesn't work after that, I will need to get back to you when I'm in front of computer.  Sorry for the trouble!

 

Theo

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Done. but same error.

Thank you.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.