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
Ayappan
Helper III
Helper III

I need column based slicer

I have a set of data which has pass and fail.

Ayappan_0-1638515097541.png

 

I need a slicer which has data like Student 1 ,Student 2 ...

If i select Student 1 it should update my Donut chat with how many subject Student 1 got Pass or Fail or No data or Pass - Conditional

Thanks in Advance

1 ACCEPTED SOLUTION
bcdobbs
Super User
Super User

Hi @Ayappan ,

 

I would start by transforming your data in power query (click transform data).

 

You need to select the subject name column and then use "Unpivot Other Columns". https://support.microsoft.com/en-us/office/unpivot-columns-power-query-0f7bad4b-9ea1-49c1-9d95-f5882...

this will give you a table with columns:

Subject, Student Name, Value.

 

Data in this form will be much easier to work with in Power Bi.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

View solution in original post

3 REPLIES 3
bcdobbs
Super User
Super User

If Active/InActive is linked to the subject then go back to PowerQuery, remove the unpivot you previously did and then repeat the steps but this time select both the Subject column and the Active/InActive column before using Unpivot other columns.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
bcdobbs
Super User
Super User

Hi @Ayappan ,

 

I would start by transforming your data in power query (click transform data).

 

You need to select the subject name column and then use "Unpivot Other Columns". https://support.microsoft.com/en-us/office/unpivot-columns-power-query-0f7bad4b-9ea1-49c1-9d95-f5882...

this will give you a table with columns:

Subject, Student Name, Value.

 

Data in this form will be much easier to work with in Power Bi.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Thanks @bcdobbs 

That worked - After this  i had added a column with Active / InActive .

So now i have to Filters .1st with pass or fail 2nd with Active / InActive 

Should i follow same process or any other way it will help me .Please Suggest

 

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.