Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
23 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
7 | |
6 |