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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
nzcatala
Frequent Visitor

Changing Column based on Slicer selection

I have summarized data that is broken into categories by date, and I would like to be able to select between the three columns based on a data slicer.

 

For Example:

 

Name Last3Months Last6Months Last9Months

A         1                      2                    3

B         2                      3                    4

 

If the "Last 3 Months" slicer is selected, I'd like to see a visual table in the format of:

 

Name Count

A         1

B         2

 

If the "Last 6 Months" slicer is selected, I'd like to see a visual table in the format of:

 

Name Count

A         2

B         3

 

 

Hopefully that made sense!

 

1 ACCEPTED SOLUTION
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @nzcatala,

Based on my test, you could refer to below steps:

Unpivot your row table with these three columns:

1.PNG

Result:

2.PNG

Now you could use the [Attribute] column as filter:

3.PNG

You could also download the pbix file to have a view.

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @nzcatala,

Based on my test, you could refer to below steps:

Unpivot your row table with these three columns:

1.PNG

Result:

2.PNG

Now you could use the [Attribute] column as filter:

3.PNG

You could also download the pbix file to have a view.

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.