Hello,
Heirarchy of my sales data is as follows, EVP->RVP->DM->Branch->Customer->Part.. I would like to set up a measure that counts if a customer has a profit gain at a certain value (Red).
I wrote the following code, which I was hoping would sum up every time the if/then was true. When I summarize at a higher level, it just recalculates for that level and doesn't sum at the Customer level. I'm guessing the issue has to do with the filter, but am not sure how to adjust.
if(
SUMX(
filter(
'Vending Guidnace Proposal','Vending Guidnace Proposal'[Customer]='Vending Guidnace Proposal'[Customer]), 'Vending Guidnace Proposal'[Profit Gain @ Red])>0,1,""
)
Thanks