Forum Discussion

YBZ59's avatar
YBZ59
Regular Visitor
2 years ago
Solved

Conditional counting based on aggregate results

I Have a table with records on training, two columns are 'Status' and 'Result', the Status hold intermediate value like "pending" verification the Result holds final values like "Pass" or "Fail", the...
  • rubayatyasmin's avatar
    2 years ago

    Hi, YBZ59 

     

    Create a calculated column by using something like

     

    InProgressStatus = IF(
    ISBLANK([Result]) && NOT(ISBLANK([SubmissionDate])),
    "InProgress",
    [Result]
    )

     

    then create a dax measure to count the inProgress values. 

     

    InProgressRecordsCount = COUNTROWS(
    FILTER(
    KnowledgeDB,
    [InProgressStatus] = "InProgress"
    )
    )