Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have a dataset that I used Transform -> Pivot Column to move a metric from rows to columns, and then I created a Correlation Plot using those columns.
However, this is manual and set in stone. Is it possible to choose a subset of the dataset based on user's selection, transform as above, and then put all the resulting columns in the correlation plot, all during runtime (not edit mode)?
Hi @dpc_development ,
Does matrix work?
BTW, how about using parameters in power query ? M code for your reference.
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUTI0UIrVgTKNwEwnENMUzHQGMi3hghZwlilcjwlcHdQgFyATYo4rSBDMcoOz3IEsYzDLAyIWCwA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [#"Column 1" = _t, #"Column 2" = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column 1", type text}, {"Column 2", Int64.Type}}), #"Filtered Rows" = Table.SelectRows(#"Changed Type", each [Column 1] = Parameter1), #"Pivoted Column" = Table.Pivot(#"Filtered Rows", List.Distinct(#"Filtered Rows"[#"Column 1"]), "Column 1", "Column 2", List.Sum) in #"Pivoted Column"
Hi @dpc_development ,
Does that make sense? If so, kindly mark my answer as the solution to close the case please. Thanks in advance.
@v-frfei-msft I ended up using a Python Visual to get what I needed.
However, for future reference, can the paramter in your example be set by a Slicer? Cause I need my visuals to update based on filter values changing.
Although I have many other fields to filter by.
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
135 | |
126 | |
110 | |
70 | |
61 |