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.
Hi,
My dataset contains thousands of rows of Orders which contain Client IDs and the amount they purchased for as well as about fifty other columns that are not important for what I am trying to do here.
What I want to do is:
I have been able to do 1 & 2 multiple different ways and in a table it looks good, but when I try to display it in a graph, it is not coming out correctly. The closest I have come is the bar chart working but it is counting each individual order and bucketing them instead of the aggregate by client.
Thanks in advance for your help!
Solved! Go to Solution.
Please follow the below steps.
1. To aggregate the Amount based on Client ID
Group the Client ID column by applying SUM on the Amount column.
= Table.Group(#"Changed Type", {"Client ID"}, {{"Amount", each List.Sum([Amount]), type number}})
2. To create a bucket of Amount - Create a conditional column as below
= Table.AddColumn(#"Grouped Rows", "Bucket", each if [Amount] < 50 then "0 - 50" else if [Amount] <= 100 then "50 - 100" else if [Amount] > 100 then "100 - Above" else null)
3. Using the newly created conditional column create a bar chart.
Please follow the below steps.
1. To aggregate the Amount based on Client ID
Group the Client ID column by applying SUM on the Amount column.
= Table.Group(#"Changed Type", {"Client ID"}, {{"Amount", each List.Sum([Amount]), type number}})
2. To create a bucket of Amount - Create a conditional column as below
= Table.AddColumn(#"Grouped Rows", "Bucket", each if [Amount] < 50 then "0 - 50" else if [Amount] <= 100 then "50 - 100" else if [Amount] > 100 then "100 - Above" else null)
3. Using the newly created conditional column create a bar chart.
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 |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |