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.

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.

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Top Kudoed Authors