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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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