Forum Discussion
Diane_Gribi
3 years agoHelper I
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 ...
- 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
Greg_Deckler
3 years agoCommunity Champion
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
__ResultDiane_Gribi
3 years agoHelper I
Thanks sorry, meant to reply. had a little trouble with something else on the file that was showing up strange values, but got it all sorted now. Thanks