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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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