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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Fraze
Helper I
Helper I

Removing Filter Context to Calculate Total Value for Market Share

Hello,

 

I am having some serious issues with this problem. All I want to do is remove the effect of two filters, and use that as the total for a market share calcualtion.

 

Here are my filters:

Slicer - Data[Location]

Slicer - Data[Date]

Slicer - Date[Model]

Filter on Visual- Date[Transaction Type]

Filter on Visual - Date[New/Used]

 

These filters take my count of rows from 2938 to 266. What I want to do is remove the effects of the Slicer - 'Model' and 'Visual Filter - Transaction Type', which would increase the count of my rows to 1018. This is the number I need to calculate market share with. 

 

Market Share Numerator = COUNT(Data[Deal#])

Market Share Numerator = ??

 

I have been trying to use the functions All(), ALLEXCEPT(), REMOVEFILTER(), etc., but I either get errors, the wrong number or a number that does not adjust when I drill down from year to quarter. Total Market = CALCULATE(COUNT(Data[Deal#]),.....

 

Help would be greatly appreciated.

 

Frazer

 

4 REPLIES 4
v-jayw-msft
Community Support
Community Support

Hi @Fraze ,

 

Try ALL(Date[Model],Date[Transaction Type]), better to share some sample data to us.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Ashish_Mathur
Super User
Super User

Hi,

Share a simple dataset, describe the business question and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

Hi @amitchandak 

 

Unforunatly that will not work in this case - interesting read though, ill have to try that - as I need all the filters to be applied so a user can navigate to the level they need to.  Need to find a way to calculate the sum from a high filter context.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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