cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Daniel_Fdrvc
Frequent Visitor

Problems with Total in matrix with measures

I've created a simple matrix and added to them a measure (with switch inside):

 

Money = SWITCH(TRUE(),

AND(Sale[Sales]>=6000,Sale[Sales]<7500),100,

AND(Sale[Sales]>=7500,Sale[Sales]<9000),300,

etc.

 

where [Sales] is another measure, that calculates sum of sales. 
Values in columns (sausis, vasaris etc.) are correct, but for TOTAL (Viso) it not SUM all the values like i suposed should be, but applies that same measure. Why this is happening and how to avoid that? This is really annoying 😞

 

 

image0021.png

1 ACCEPTED SOLUTION
Greg_Deckler
Super User IV
Super User IV

@Daniel_Fdrvc This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
Greg_Deckler
Super User IV
Super User IV

@Daniel_Fdrvc This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Yes yes yes 🙂 thank you, in second link i've found what i was looking for!

Daniel_Fdrvc
Frequent Visitor

@amitchandak @Greg_Deckler guys, maybe you can help me? 😞

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Top Solution Authors
Top Kudoed Authors