Forum Discussion
Anonymous
7 years agoNot applicable
Flag based on the occurrences
I have a table(Name Table : accounts) which is mapped with many other tables in the direct model. In the accounts table , a column has duplicate values in it . I need create a measeaure to calculate ...
- 7 years ago
Hi Anonymous ,
If you do not want to give the zero count flag N, you try to change the measure to following
Flag = VAR c = COUNTROWS ( 'EVENT PARTICIPATION DETAIL' )+0 RETURN IF ( c = 0, BLANK (), IF ( c > 1, "Y", "N" ) )Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-lid-msft
Community Support
7 years agoHi Anonymous ,
If you do not want to give the zero count flag N, you try to change the measure to following
Flag =
VAR c =
COUNTROWS ( 'EVENT PARTICIPATION DETAIL' )+0
RETURN
IF ( c = 0, BLANK (), IF ( c > 1, "Y", "N" ) )Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
7 years agoNot applicable
Thanks a lot .. its working ..