cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerbiwork
Helper I
Helper I

DAX Measure from Switch Measure Not Totaling

Hi, 

 

I created a switch measure for a couple of conditions to pull a specific value. Then I use that to create another measure to multiply by a column to get the value I need. However, the total would not show up and I have tried to use sumx and summarize the table but the total was still wrong. Any help will be much appreciated. 

 

Here is my switch value, which worked and pulls correctly

powerbiwork_0-1639669401997.png

I need to use whatever rate that pulls to create another measure 

powerbiwork_1-1639669441279.png

Which calculated correctly, however, does not sum 

powerbiwork_2-1639669474719.png

 

Thanks. 

1 REPLY 1
amitchandak
Super User
Super User

@powerbiwork , You need to use a visual grouping on top of this measure to get that corrected

using values or summarize

 

sumx(values(Table[Column]) , [Your measure] )

 

Refer

https://www.youtube.com/watch?v=ufHOOLdi_jk



Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Learn Power BI P&L Statement || Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s ||
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!!! How to get Quick Help !!
Resources | Master Power BI !! Expertise Power BI !! Power BI For Tableau User !!

Helpful resources

Announcements
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.