March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
How can I show total of all negative and positive values?
I have a measure [Loss_of_Margin]
Solved! Go to Solution.
@Sdhn420 , for that you need a group by context
example
+ive =
sumx(values(Table[ID]), if([Loss_of_Margin]>0,[Loss_of_Margin],blank()))
-ive
sumx(values(Table[ID]), if([Loss_of_Margin]<0,[Loss_of_Margin],blank()))
Measure +IVE=
IF([MEASURE]>0,[Loss_of_Margin],bLANK())
MEASURE_IVE= IF([MEASURE]<0,bLANK(),[Loss_of_Margin])
Hey @Sdhn420 ,
can you provide more information?
How does the measure look like? Values always need a context, positive/negative values by customer or by product or by day. In which context do you want to analyze?
@Sdhn420 , for that you need a group by context
example
+ive =
sumx(values(Table[ID]), if([Loss_of_Margin]>0,[Loss_of_Margin],blank()))
-ive
sumx(values(Table[ID]), if([Loss_of_Margin]<0,[Loss_of_Margin],blank()))
Hello @amitchandak ,
I found your answer and it work for my case with 1 condition. However, when i add 1 more condition, sumx total turn out wrong
I have data with 2 measue [Fcst order gap] & [%FR]
Thank you so much!! This worked like a charm! 😄
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
84 | |
67 | |
54 | |
43 |
User | Count |
---|---|
203 | |
106 | |
98 | |
65 | |
56 |