This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
I have a table which summarizes product price and frequency. I wish to perform a number of statistical functions on the table, such as average, standard deviation and wish to use some visuals that require the data in a single coloum de-summarised: - How do I best do this?
Current table:
Price, Frequency
12.99, 3
4.50, 1
8.95, 3
Desired column:
12.99
12.99
12.99
4.50
8.95
8.95
8.95
Solved! Go to Solution.
Scratch that, I've fiddled with Advanced Query and got it work. Thank you for your swift eligant solution.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjTSs7RU0lEyVorViVYy0TMFsg3BbAs9S1OIRCwA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Price = _t, Frequency = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Price", type number}, {"Frequency", Int64.Type}}),
Repeated = Table.CombineColumns(#"Changed Type", {"Price", "Frequency"}, each List.Repeat({_{0}}, _{1}), "Price"),
#"Expanded Price" = Table.ExpandListColumn(Repeated, "Price")
in
#"Expanded Price"
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Thank you, because my expertise in Advance Editor is limited. Can the answer be simplified and expressed as individual Power Query steps? or as a New Measure in PBI using AverageX perhaps?
Scratch that, I've fiddled with Advanced Query and got it work. Thank you for your swift eligant solution.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 31 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 74 | |
| 61 | |
| 31 | |
| 31 | |
| 23 |