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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
tomperro
Helper V
Helper V

Dynamically Display Columns Based on Slicer Selection

I am looking to only show related columns in my table based on a slicer selection.

My slicer is for department and would like to show specific columns for each department.

 

All data is stored in Training Table

 

DepartmentFull NameTraining ClassificationDate Complete
Department 1John DoeTraining 101/01/2024
Department 1John DoeTraining 202/02/2024
Department 1John DoeTraining 303/03/2024
Department 2Bill SmithTraining 404/04/2024
Department 2Bill SmithTraining 505/05/2024
Department 2Bill SmithTraining 606/06/2024
Department 3Mary JonesTraining 707/07/2024
Department 3Mary JonesTraining 808/08/2024
Department 3Mary JonesTraining 909/09/2024

 

Department 1 should show Training 1 Training 2 and Training 3

Department 2 should show Training 4 Training 5 and Training 6

Department 3 should show Training 7 Training 8 and Training 9

Slicer Section = Department 1

DepartmentEmployeeTraining 1Training 2Training 3
Department 1John Doe01/01/202402/02/202403/03/2024

 

Slicer Section = Department 2

DepartmentEmployeeTraining 4Training 5Training 6
Department 2Bill Smith04/04/202405/05/202406/06/2024

 

Slicer Section = Department 3

DepartmentEmployeeTraining 7Training 8Training 9
Department 3Mary Jones07/07/202408/08/202409/09/2024

 

2 ACCEPTED SOLUTIONS
vanessafvg
Super User
Super User

there are several ways to do this, depending on how you want to view it,  easiest way to do this is just place the 

the department into the slicer like this and place the training classification on a matrix in the column and the department, person, and date on the rows.  You can adjust the formatting to your preference but you get the idea.

 

 

 

vanessafvg_0-1737055083329.png

when you select a department from the filter

it will return what is relevant.  as those are populated, if power bi does not find a value for the column it wont return it.

vanessafvg_1-1737055110846.png

 

see solution attached. 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

POSPOS
Post Partisan
Post Partisan

@tomperro  - Try to use a matrix visual as below. 

POSPOS_0-1737055304709.png

 



l

View solution in original post

2 REPLIES 2
POSPOS
Post Partisan
Post Partisan

@tomperro  - Try to use a matrix visual as below. 

POSPOS_0-1737055304709.png

 



l

vanessafvg
Super User
Super User

there are several ways to do this, depending on how you want to view it,  easiest way to do this is just place the 

the department into the slicer like this and place the training classification on a matrix in the column and the department, person, and date on the rows.  You can adjust the formatting to your preference but you get the idea.

 

 

 

vanessafvg_0-1737055083329.png

when you select a department from the filter

it will return what is relevant.  as those are populated, if power bi does not find a value for the column it wont return it.

vanessafvg_1-1737055110846.png

 

see solution attached. 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors