Forum Discussion
TKray23
2 years agoRegular Visitor
need help with dax
currently, i have a table with columns: RecordID, Filter1, Filter2, Col_A, Col_B,... LIST OF UNIQUE RECORDS = IF((TABLE1[FILTER1]=1), TABLE1[FILTER2],0) it gives me NON UNIQUE list of records becau...
- Anonymous2 years ago
Hi TKray23 ,
I suggest you to try code as below to create a measure.
Count = VAR _SUMMARIZE = ADDCOLUMNS ( 'Table', "DISCOUNTFILTER2", CALCULATE ( DISTINCTCOUNT ( 'Table'[Filter 2(1,0)] ), ALLEXCEPT ( 'Table', 'Table'[Record id] ) ) ) RETURN COUNTX ( FILTER ( _SUMMARIZE, [DISCOUNTFILTER2] = 1 ), [Filter 1] )Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
parry2k
Super User
2 years agoThanks for the valuable feedback.