Forum Discussion
Hongmingk
2 years agoFrequent Visitor
Cumulative Reject Count
Hi all, I have a table with all the rejects information for individual items. I want to do a cumulative of all the rejects description for individual items. As you can see above, t...
- 2 years ago
Hi,
Please check the below picture and the attached pbix file if it suits your requirement.
_cumReject = IF ( ISINSCOPE ( 'Reject Data'[Reject Desciption] ), VAR _allselectedComp = ALLSELECTED ( 'Reject Data'[Reject Desciption] ) VAR _CompTable = ADDCOLUMNS ( _allselectedComp, "@Count", 'Reject Data'[Reject Count] ) RETURN SUMX ( WINDOW ( 1, ABS, 0, REL, _CompTable, ORDERBY ( [@Count], DESC, 'Reject Data'[Reject Desciption], ASC ) ), [@Count] ) )
Hongmingk
2 years agoFrequent Visitor
Hi,
Kindly find the pbix file's link and the excel file sample link below.
Much apperiacted for your help. Thanks
Jihwan_Kim
2 years agoSuper User
Hi,
Please check the below picture and the attached pbix file if it suits your requirement.
_cumReject =
IF (
ISINSCOPE ( 'Reject Data'[Reject Desciption] ),
VAR _allselectedComp =
ALLSELECTED ( 'Reject Data'[Reject Desciption] )
VAR _CompTable =
ADDCOLUMNS ( _allselectedComp, "@Count", 'Reject Data'[Reject Count] )
RETURN
SUMX (
WINDOW (
1,
ABS,
0,
REL,
_CompTable,
ORDERBY ( [@Count], DESC, 'Reject Data'[Reject Desciption], ASC )
),
[@Count]
)
)
- Hongmingk2 years agoFrequent Visitor
Hi,
It work perfectly! Thanks alot for your assist and guidance.
Thanks.