Forum Discussion
Help the Formula Count
- 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
Hi Anonymous ,
try this measure
Measure =
VAR _CurrentCase = SELECTEDVALUE('Facts51'[Case Number])
VAR A =
COUNTROWS(
FILTER(ALL('Facts51'),
'Facts51'[Case Number] = _CurrentCase
)
)
RETURN
SWITCH(TRUE(),
A>=3,"Call the TSE",
"Follow with Service"
)If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous3 years agoNot applicable
It didn't work, only an answer appeared.
Measure =VAR _CurrentCase = SELECTEDVALUE('Parts Order Line'[CaseNumber])VAR A =COUNTROWS(FILTER(ALL('Parts Order Line'[CaseNumber]),'Parts Order Line'[CaseNumber] = _CurrentCase))RETURNSWITCH(TRUE(),A>=3,"Call the TSE","Follow with Service")- Anonymous3 years agoNot applicable
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