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

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.

Reply
mariobeiutz
Frequent Visitor

Slicer to switch between multiple columns in chart

Hello

 

I've a "Test Cases" SP list which contains a couple of 100's line items (test cases). The list contains columns for:

  • title
  • description
  • result
  • test case ID
  • plus multiple columns for the status of the current test iteration.

In total there are 8 status columns like:

  • Status-1
  • Status-2
  • ...

The status columns are choice fields:

  • 01 - Not Started
  • 02 - Failed
  • 03 - Successful
  • 04 - Not Required
  • 05 - Retest

What I want to achive is to have a slicer, which includes the Iterations (1,2,3,4,5,6,7,8,All). When I select the "1", then I want a pie chart, which shows the number of test cases from the 1st iteration according the value 01 - Not Started, 02 - Failed, ...., means from coloum Status-1. If I select the "2" on the slicer, then I want that the same pie chart shows the number of test cases from the 2nd iteration according the value 01 - Not Started, 02 - Failed, ...., means from coloum Status-2. How can I do this, means how the switch between all 8 columns and show the results

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@mariobeiutz I would recommend unpivoting your status columns in Power Query and then it should be straight-forward.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
v-kkf-msft
Community Support
Community Support

Hi @mariobeiutz ,

 

Did @Greg_Deckler 's reply solve your problem? You can unpivot the columns as he said. If it is solved, please consider accept Greg_Deckler 's reply as the solution to help the other members find it more quickly.

 

vkkfmsft_0-1631524238856.pngvkkfmsft_1-1631524256397.png  vkkfmsft_2-1631524366188.png

 

Best Regards,
Winniz

 

Hi, yes Greg's solution is working, thank you too for the sample you sent. Cheers Mario

Greg_Deckler
Super User
Super User

@mariobeiutz I would recommend unpivoting your status columns in Power Query and then it should be straight-forward.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Dear Greg, thank you so much, so simple and it did the trick. Cheers Mario

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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