Forum Discussion
Anonymous
8 years agoNot applicable
Remove Duplicates Based on Values from Two Columns
Hey guys, I'm have here a table with costs and two cost centers. The problem is, some of these costs are tied to both cost centers, so I end up with duplicated costs, which sums up and gives me a tot...
- 8 years ago
Hi Anonymous,
Above formula is DAX which should be used in report building view rather tha Query Editor. You used semicolon (;) after ALLEXCEPT('Actuals' ; , please change it with comma (,).
If it still doesnt't work, please replace all comma (,) with semicolon (;) in above formula for a test.
Is tied to multipe centers = IF ( CALCULATE ( DISTINCTCOUNT ( 'Cost TB'[Cost Center] ); ALLEXCEPT ( 'Cost TB';'Cost TB'[Trip Number] ) ) > 1; "Y"; "N" )Regards,
Yuliana Gu
v-yulgu-msft
8 years agoMicrosoft Employee
Hi Anonymous,
Above formula is DAX which should be used in report building view rather tha Query Editor. You used semicolon (;) after ALLEXCEPT('Actuals' ; , please change it with comma (,).
If it still doesnt't work, please replace all comma (,) with semicolon (;) in above formula for a test.
Is tied to multipe centers =
IF (
CALCULATE (
DISTINCTCOUNT ( 'Cost TB'[Cost Center] );
ALLEXCEPT ( 'Cost TB';'Cost TB'[Trip Number] )
)
> 1;
"Y";
"N"
)
Regards,
Yuliana Gu
Anonymous
8 years agoNot applicable
Thanks very much! That worked flawlessly!