Forum Discussion
Fxelixe
3 years agoFrequent Visitor
IF statement not adding on Category Level
Hello, So I got some issue on applying my measure on higher levelv of category. Here's my data set: Group ID X Y Z Have X Y Z A A01 10000 10000 10000 1 A A02 1...
- 3 years ago
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
Desired outcome measure: = SUMX ( ADDCOLUMNS ( DISTINCT ( 'Group'[ID] ), "@condition", IF ( COUNTROWS ( CALCULATETABLE ( FILTER ( 'Value', 'Value'[Sales] <> 0 ), 'Time'[Month] = "Nov" ) ) = 3, 1 ) ), [@condition] )
Jihwan_Kim
3 years agoSuper User
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
Desired outcome measure: =
SUMX (
ADDCOLUMNS (
DISTINCT ( 'Group'[ID] ),
"@condition",
IF (
COUNTROWS (
CALCULATETABLE (
FILTER ( 'Value', 'Value'[Sales] <> 0 ),
'Time'[Month] = "Nov"
)
) = 3,
1
)
),
[@condition]
)
Fxelixe
3 years agoFrequent Visitor
Thank you for the inspiration. hope this also can help others.