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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors