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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

DAX Measure - Percentages are summed when not filtered

Hello,

 

I have this table:

 

Unbenannt.PNG

 

I want to show the CVR in a chart. Problem is I found one formula working when filtered per platform, and one formula working when not filtered.

 

Working when filtered by platform:

Flat_File_CVR[ Orders ]/Flat_File_CVR[  Visits  ]

> Meaning that my percentages are summed when I don't filter, which is wrong.

 

Working when total only:

Flat_File_CVR[ Orders ]/CALCULATE(SUM(Flat_File_CVR[  Visits  ]);ALLEXCEPT(Flat_File_CVR;Flat_File_CVR[Months]))

 

Is there any way to have a formula working in both cases ?

 

Thanks.

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

 

By my tests based on your information, I'm not very clear about your requirement.

 

If it is convenient, could you share some data sample as table format and your desired output so that I can copy and test on it.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

Not 100% sure but, 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


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.