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.
Hello,
I'm currently creating a Training Attendance Workbook for my company using Power BI Desktop. Originally, I had one page level filter for each column which only filtered for employees that have a "completed" status for at least one training, which then was reflected in a table visualization that contains their name, role, and location etc. I then realized that being able to filter for both Complete and Incomplete statuses would be a lot more useful as far as scheduling future training. Each of these trainings have their statuses on a separate column in the same table. My question is, is there a way to create a dax calculation or expression that will filter all of these columns with one visualization? More specifically, can I use the Slicer visualization to filter for either "Complete" or "Incomplete" on every single training status column at once? I've attached a screenshot of our table is I didn't articulate my question properly. I'm fairly new to Power BI and working with diverse sets of data, so any help or insight is appreciated!
Solved! Go to Solution.
Hi joshfdpr,
What is your current situation? To answer your questions, based on the data image you shared, I don’t think we could write any DAX expression to filter multiple columns based on single slicer.
Even the values of those columns are the same, this can’t be done under Power BI desktop.
And if we unpivot those columns, just as what ankitpatira suggested, you may get what you would like to achieve.
I will share some detailed steps here, hope it helps:
Regards
Hi joshfdpr,
What is your current situation? To answer your questions, based on the data image you shared, I don’t think we could write any DAX expression to filter multiple columns based on single slicer.
Even the values of those columns are the same, this can’t be done under Power BI desktop.
And if we unpivot those columns, just as what ankitpatira suggested, you may get what you would like to achieve.
I will share some detailed steps here, hope it helps:
Regards
@Anonymous I think if you pivot your table you may get what you're after. So after pivotting your strucutre will be as below and then you can use slicer visual for Value column for filtering.
Column,value
7Stand,complete
7Stand,incomplete
Buying,complete
Buying,incomplete
Change,complete
Change,incomplete
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
96 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |