Forum Discussion
Anonymous
3 years agoNot applicable
Help the Formula Count
Hello guys. I need to create a rule that tells me if there are 3 or more PN's for the same Case Number. If it is 3 or more, you need to reform the message: "Call the TSE" If below 3: "Follow with ...
- Anonymous3 years ago
Hi Anonymous ,
You seem to have created a calculated column, if you want a calculated column, try like:Result = VAR _COUNT = CALCULATE ( DISTINCTCOUNT ( 'Parts Order Line'[PN] ), FILTER ( ALL ( 'Parts Order Line' ), 'Parts Order Line'[CaseNumber] = EARLIER ( 'Parts Order Line'[CaseNumber] ) ) ) VAR _RESULT = IF ( _COUNT >= 3, "Call the TSE", "Follow with Service" ) RETURN _RESULTBest Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Tahreem24
3 years agoSuper User
Anonymous try this measure:
Result =
VAR Count_ = CALCULATE(Count('Table'[PN]),ALLEXCEPT('Table','Table'[Case Number]))
RETURN if(Count_>=3,"Call the TSE","Follow with Service")