Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have the above bleu table. And I want to generate a (yellow) table that shows the median of "Value" by color.
But before calculating the median, "Value" must first be summed to "Color" and "Animal", like the green table above.
To make the example table, below the code of the advanced editor:
let
Bron = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("hdBND4IgGAfw78LZg/iax1LXOtW0m3ONJSKLQWP5/XtoTWBNu/AAvz+vXYdO1S0MMQpQQwdoS/KCNkF98KVoneKFKsV8StYpXejKGdVQscVsC3MYHgSdodSCPicizYUKG9jZQKnVXQ1cUD9R2MSRazKO1LscDq23kjz81dh801kTycz8/nN6ZDX6VWfneFMTV1tK2CwE9FKbSP8mMjdx4ebb4T0L5y43E5cKaoz6/g0=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [ID = _t, Color = _t, Animal = _t, Value = _t]),
#"Type gewijzigd" = Table.TransformColumnTypes(Bron,{{"ID", type text}, {"Color", type text}, {"Animal", type text}, {"Value", Int64.Type}})
in
#"Type gewijzigd"
Solved! Go to Solution.
Hi,
Please try the below DAX formula to create a new table.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi @Jihwan_Kim thanks for your super quick response. I copied your DAX example, and it works exactly as hoped
Thank you so much for thinking along and providing the right DAX formula!
Hi,
Please try the below DAX formula to create a new table.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
User | Count |
---|---|
42 | |
28 | |
24 | |
20 | |
16 |
User | Count |
---|---|
54 | |
35 | |
18 | |
18 | |
15 |