Forum Discussion

Diane_Gribi's avatar
Diane_Gribi
Helper I
3 years ago
Solved

Calculating % Reject from Total Inspections

hi - Looking for some Dax command help.  I am looking to create a graph from data similar to below were for each month I calculate the total number of inspections (which I have managed to do), total ...
  • Greg_Deckler's avatar
    3 years ago

    Diane_Gribi Maybe something like this. See PBIX attached below signature.

    Measure = 
        VAR __Rejects = COUNTROWS(FILTER('Table', [GRI Result] = "Reject"))
        VAR __Total = COUNTROWS('Table')
        VAR __Result = DIVIDE(__Rejects, __Total)
    RETURN
        __Result