Forum Discussion
Anonymous
3 years agoNot applicable
How to get sumx for 2 rows
Hi all,
When I use below measure, it can give me correct value except for 2 production order in 1 days as below example. It only ready 1 row of data, instead it should sum the usage.
Actual Data
| Day | Production Order | Abnormality | Usage | Loss |
| 19 | 100002662891 | Joint | 7293 | 0 |
| 19 | 100002662906 | Joint | 8869 | 86 |
Result from the measure
| Day | Abnormality | Usage | Loss |
| 19 | Joint | 8869 | 86 |
Usage measure =
SUMX(
SUMMARIZE (
CALCULATETABLE('For Graph',ALL('For Graph'[Abnormality])),
'For Graph'[Day],
'For Graph'[SAP_PPT_EV_MaterialDocument_GI (2).Total GI Coating]
),
'For Graph'[SAP_PPT_EV_MaterialDocument_GI (2).Total GI Coating]
)
Regards,
Nuha
2 Replies
- amitchandak
Super User
Anonymous , Take Simple sum of usage and the sum of loss
or a measure like
sumx(Summarize(Table,[Production Order],[Abnormality], [Day],[Usage]), [Usage] )
- AnonymousNot applicable
Hi amitchandak ,
Already done the measure but the result still the same.
Usage measure =
SUMX(SUMMARIZE ('For Graph','For Graph'[OrderNumber_AUFNR],'For Graph'[Abnormality],'For Graph'[Day],'For Graph'[SAP_PPT_EV_MaterialDocument_GI (2).Total GI Coating]),'For Graph'[SAP_PPT_EV_MaterialDocument_GI (2).Total GI Coating])Regards,
Nuha