- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Total of positive and negatives
Hi,
How can I show total of all negative and positive values?
I have a measure [Loss_of_Margin]
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@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()))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Measure +IVE=
IF([MEASURE]>0,[Loss_of_Margin],bLANK())
MEASURE_IVE= IF([MEASURE]<0,bLANK(),[Loss_of_Margin])
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@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()))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you so much!! This worked like a charm! 😄

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
12-12-2024 02:16 PM | |||
05-31-2022 08:40 PM | |||
07-31-2024 09:17 PM | |||
08-30-2024 01:50 AM | |||
07-01-2024 10:28 PM |
User | Count |
---|---|
136 | |
107 | |
88 | |
58 | |
46 |