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 Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors