Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
For some reason I am not able to add my test data. I am receiving the error the file type (.pbix) is not supported so if anyone has any ideas as to why I am receiving that please let me know. I have attached a screenshot of the data and report below for my question.
Data:
Report:
Would like to see the values separated by ; counted within its appropriate product.
So I would expect to see:
Apples 3
Oranges 3
Pineapples 1
Strawberries 2
Solved! Go to Solution.
I found resolution here: https://community.powerbi.com/t5/Desktop/Separate-products-that-are-listed-in-data-with-or/m-p/23621...
Option 1 of the two provided.
I found resolution here: https://community.powerbi.com/t5/Desktop/Separate-products-that-are-listed-in-data-with-or/m-p/23621...
Option 1 of the two provided.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WciwoyEktVtJRMlKK1YFxrf2LEvPSwcKGYGF0fkBmXmoiilLr4JKixPKk1KKiTCR1mIKxAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Product = _t, ct = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Product", type text}, {"ct", Int64.Type}}),
#"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Changed Type", {{"Product", Splitter.SplitTextByDelimiter(";", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Product"),
#"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Product", type text}}),
#"Grouped Rows" = Table.Group(#"Changed Type1", {"Product"}, {{"Count", each List.Sum([ct]), type nullable number}})
in
#"Grouped Rows"
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |