Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
This is difficult to explain, but i am trying to make a visual level filter inside of a page level filter, and a ranking function that will only look at the page level filter.
If i have 100 companies that sell clothes, and i am only interested in 50 of them. I have a page level filter that only views that 50 i want to compare against each other. Then i have a visual that just says "Shirts" for instance. I want a visual level filter where I can select only one company inside of the 50 companies and the table will show my the companies rank in their price for the shirt among all 50 companies. Right now, when i select a company in my visual level filter it always shows ranked 1, because it is removing the other 49 companies from the page level filter in the analysis.
Can anyone explain the logic behind nested filters in this way, how could i have a rank function that ignores the visual level filter, but looks at the page level filters?
Since you want to create a RANK on based on the filtered table context, I think you create RANK measure to get the correct rank number. However, when you select only one company in the visual the filter context becomes the one company only so that it always returns 1. It's not possible to make the RANK "dynamically" based on Page Level Filter, but "fixed" for Visual Level Filter. You have to select all companies in visual to show correct RANK.
RANK = RANKX(ALLSELECTED(Table6),CALCULATE(SUM(Table6[Sales])),,DESC,Dense)
Regards,
Simon,
Thank you very much for your reply. I am glad that you understood my question, but it is unfortunate that there is not a way do what i am wanting to do.
Do you know of a way that i could get around this?
The only thing that i can think of, you can tell me if this will work, is if i have a field called company group in my table where i group the companies into 3 different groups or so. Would i then be able to have 3 seperate ranking measures that "filter" on the group number, but ignore any outside filters. Then i would be able to use visual level filters to filter none of the companies, when looking at the group/industry, and filter on only one company in another visual when i want to drill down into its characteristics. The problem is that I am new to Dax, so creating this formula might be beyond me and you can probably get back to me faster than i can create it. In summary, i would be basically placing the page level filter into the table with a column, then i could use 3 or however many groups i have or combination of groups that i want, pages each with a different rank measure. Then just use visual level filters and slicers to control an individual company. Do you think this could work, or do you have a better, maybe more efficient work around?
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Check out the November 2024 Power BI update to learn about new features.
User | Count |
---|---|
92 | |
89 | |
83 | |
77 | |
49 |
User | Count |
---|---|
146 | |
137 | |
109 | |
68 | |
55 |