Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
As shown in the picture (1), this is my data source (excel)
and as shown in the picture (2), I would like to create Line Chart to see what's my gross profit % for the overall business and selected item group.
Problem: the percentage are adding up which causes 400, 500 which makes no sense. If I select to view each item, of course there is no problem, but I beleive there are some certain ways to view gross profit % for the overall business or selected item group.
Looking forward and Thanks
Hi @Nay_Myo_Zaw !
When you drop your column in your chart and its a number, by default Power BI usually summarizes it. You need to change the behaviour of this by selecting the type of aggregation you want for your column.
If you right click on the field of your visual you can select this
Hope this helps!
Yes, I tried. But none of the aggregation doesn't really make sense because what I really need is (sum of gross profit of all items) divided by (sum of sales amount of all items) to get the overall business gross profit %.
The options are just average, median etc. of the gross profit %, which doesn't really make sense.
Have you tried creating a measure like this?
Gross Profit % =
DIVIDE(
SUM( Gross Profit ),
SUM( sales Amount )
)
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
86 | |
82 | |
70 | |
49 |
User | Count |
---|---|
143 | |
123 | |
107 | |
61 | |
55 |