The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
Solved! Go to Solution.
Hi @Ashwani94kr ,
Please try to unipovt the subject columns. Like the following :
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.
Hi @Ashwani94kr ,
Please try to unipovt the subject columns. Like the following :
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.
hi @Ashwani94kr
With field parameter.
check this:
https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |