The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi everyone,
I have more than 4 measures to calculate the loss time hours. I need to show the total of category only if the total of segment is negative. The total of segment is calculated based on products regardless of their value if it is positive or negative. All what I care about is if the total of segment is negative so it should be added to other subtotals of the category.
In the attached image, you can find the grand total is 52.57 but the correct one that is needed is 8.63 only because the other subtotal of segment 2 and 3 are positive.
Solved! Go to Solution.
Thanks everyone
After a while of work, I found the solution
EEE =
The grand total sum and shows only the sum of negative subgrand total only.
Thanks everyone
After a while of work, I found the solution
EEE =
The grand total sum and shows only the sum of negative subgrand total only.
Thanks for your reply.
All what I need is to sum the negative subtotals only and omit the positive values.
If your Loss time is a meausre
Sumx(
values([Plants)],
if(
[measuer]<0,
calculate([measuer]),
0
)
)
I don think you need add all negative numbers.
I would do:
Sumx(values([Plants)],calculate(max([measuer],0)))
that will show no negative numbers.
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
32 | |
13 | |
10 | |
10 | |
9 |