Forum Discussion

ElvirBotic's avatar
ElvirBotic
Helper III
4 years ago
Solved

Fix % when using slicer.

hello, Power BI Community,    I am running into a problem I have not seen before. I was given an Excel file with roughly 1200 records. The goal is to calculate the % compliant. There is a column in...
  • amitchandak's avatar
    4 years ago

    ElvirBotic , Try with a small change in the second measure

     

    Status 1 Count = CALCULATE ( COUNTROWS ( ComplianceData ), filter(ComplianceData, ComplianceData[Status] = "Compliant" ))


    % Compliant = DIVIDE ([Status 1 Count] , [All Records] )