I'm trying to create a measure that gives me the percentage within groups. The following formula is working like a charm until I start slicing or cross-filtering:
Measure = DIVIDE(COUNT(data[Respondent]),CALCULATE(DISTINCTCOUNT(data[Respondent]),ALL(data)))
What I would like is a function that only ignores one column in my data when filtering, i.e. only the column which contains the categories I'm trying to create a percentage of. I want kind of a %GT effect but one that amounts to more than 100% (therefore, I don't use the build-in quick calc at the graph level) since the respondents can have selected several categories.
Replying to this old thread because it came up in a search for me. DAX now has a REMOVEFILTERS function which I believe accomplishes what this is asking about (and certainly works in the case I was dealing with).
Thanks for your suggestion but that actually just makes it worse.
What I have look like the following (anonymized):
And adding the column within ALL gives me:
Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.
Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!
Watch Session 22 Ted's Dev Camp along with past sessions!
Click here to read more about the May 2022 updates!