Forum Discussion
Undo filter in Drillthrough
Hey guys,
so I created this drillthrough system:
And now, in the DrillDown of a certain Project, I want to be able to compare it to other projects (which are obviously filtered out).
I already understood to use the ALL & SUMX function to make a measure for the average Margin of all projects:
This works fine.
But what I want is a column that has all the other projects(rows) unfiltered. With this I would like to make a clustered column chart to see this drilldown project in comparison with others.
Is there a way?
Thanks guys,
Greetings,
Janik
hi Anonymous
you could try this way as below:
Step1:
Create a separate project table and create a relationship as below:
Note: The cross filter direction must be Single and is separate project (1:*) ProjectData
Separate Project = VALUES('ProjectData'[Project])Step2:
Create measure like this:
Average Margin = SUMX(ALL(ProjectData), ProjectData[Margin])Basic Margin = CALCULATE(SUM(ProjectData[Margin]),FILTER(ALL(ProjectData),ProjectData[Project]=MAX('Separate Project'[Project])))And drag them into a vsiual with project field from the separate project table
Result:
Simple example, I drillthrough by USA
and here is my sample pbix file, please try it.
Regards,
Lin
2 Replies
- amitchandak
Super User
Anonymous , Can you please explain with an example.
One of the way to remove the filter from all drill down below keep all filters
In the new release, you have an option for conditional drill down
https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-may-2020-feature-summary/#_Cond_dest_drill
Appreciate your Kudos. - v-lili6-msft
Community Support
hi Anonymous
you could try this way as below:
Step1:
Create a separate project table and create a relationship as below:
Note: The cross filter direction must be Single and is separate project (1:*) ProjectData
Separate Project = VALUES('ProjectData'[Project])Step2:
Create measure like this:
Average Margin = SUMX(ALL(ProjectData), ProjectData[Margin])Basic Margin = CALCULATE(SUM(ProjectData[Margin]),FILTER(ALL(ProjectData),ProjectData[Project]=MAX('Separate Project'[Project])))And drag them into a vsiual with project field from the separate project table
Result:
Simple example, I drillthrough by USA
and here is my sample pbix file, please try it.
Regards,
Lin