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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Ashwani94kr
New Member

How to used column as filter in visual

I have table Q1 with column name of subject - English, Maths, Physics, Biology, ICT 

I like to use column name as filter in visual such that when i click on particular subject it show only visual related to that subject only

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Ashwani94kr ,

Please try to unipovt the subject columns. Like the following :

vrongtiepmsft_0-1681960308499.png

Then you can put the subject into the slicer and filter then.

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjRV0sFKJCrF6gClzUB8LEQSRNocxMdCJEOkLUB8LEQqRNoSxMdCpICljQyATGxEmlJsLAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [English = _t, Maths = _t, Physics = _t, Biology = _t, ICT = _t, #"name " = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"English", Int64.Type}, {"Maths", Int64.Type}, {"Physics", Int64.Type}, {"Biology", Int64.Type}, {"ICT", Int64.Type}, {"name ", type text}}),
    #"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Changed Type", {"name "}, "Attribute", "Value")
in
    #"Unpivoted Columns"

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

2 REPLIES 2
Anonymous
Not applicable

Hi @Ashwani94kr ,

Please try to unipovt the subject columns. Like the following :

vrongtiepmsft_0-1681960308499.png

Then you can put the subject into the slicer and filter then.

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjRV0sFKJCrF6gClzUB8LEQSRNocxMdCJEOkLUB8LEQqRNoSxMdCpICljQyATGxEmlJsLAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [English = _t, Maths = _t, Physics = _t, Biology = _t, ICT = _t, #"name " = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"English", Int64.Type}, {"Maths", Int64.Type}, {"Physics", Int64.Type}, {"Biology", Int64.Type}, {"ICT", Int64.Type}, {"name ", type text}}),
    #"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Changed Type", {"name "}, "Attribute", "Value")
in
    #"Unpivoted Columns"

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

FreemanZ
Super User
Super User

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.