Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I am trying to calculate percent of Profit and I am getting the same value for the overall total (Per Sales).
Using this calculation to get the overall total to divide each line by. (my denominator 1,965,485.23)
Per Sales =
CALCULATE(
[Profit],
ALL(Main[ITEMID]))
My numerator is the Profit column
Profit = [Purchased Amount]+[Sold Amount]
Purchased Amount =
CALCULATE(
SUM(
Main[Cost Amount2]),
Main[Status Issue] ="SOLD")
Sold Amount =
CALCULATE(
SUM(
Main[SALES LINEAMOUNT]),
Main[Status Issue] ="SOLD")
Need "Per Sales" Column all to be 1,965,485.23 and % of Sales 2016 9.3%, 2017, 10.4%...
Hi @Bmejia ,
Please have a try.
Modify your measures.
Per Sales =
SUMX ( ALL ( 'Table' ), [Profit] )
% of Sales=[Profit]/[Per Sales]
If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It did not work, I used allexcept and came closer but can't find what other field to exclude.
I was not able to attach a file but here is a link hopefully you can accessed.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
84 | |
83 | |
64 | |
60 | |
55 |
User | Count |
---|---|
183 | |
111 | |
105 | |
77 | |
70 |