I am using a few measures to calculate some values from a table that contains hourly data. A sample of a matrix table with the measures I am using is listed below.
Location | CO2_Downtime | Unit_Op_Hrs | CO2_OMA |
Location 1 | 1 | 269 | 99.60% |
Location 2 | 0 | 294 | 100% |
Location 3 | 1 | 520 | 99.80% |
Location 4 | 1 | 763 | 99.90% |
Location 5 | 6 | 1143 | 99.50% |
Location 6 | 8 | 1176 | 99.30% |
Location 7 | 1049 | ||
Location 8 | 605 | ||
Location 9 | 1046 | ||
Location 10 | 1016 | ||
Location 11 | 5 | 459 | 98.90% |
Location 12 | 5 | 464 | 98.90% |
Location 13 | 1178 | ||
Location 14 | 1178 | ||
Location 15 | 5 | 1178 | 99.60% |
Location 16 | 5 | 655 | 99.20% |
Location 17 | 0 | 0 | 100% |
Location 18 | 0 | 162 | 100% |
Location 19 | 0 | 1172 | 100% |
The matrix table is made up of the following Measures:
CO2_Downtime = CALCULATE(SUM('Downtime'[Summed Values]),
FILTER(ALL('Downtime'[Data Point Name]),
('Downtime'[Data Point Name]) = "CO2 Downtime (hr)"))
Unit_Op_Hrs = CALCULATE(SUM('Downtime'[Other Attributes.DPV Operating Ind]),
FILTER(ALL('Downtime'[Data Point Name]),
('Downtime'[Data Point Name]) = "Unit Operating Time"))
CO2_PMA = IF(CONTAINS('Quarterly PMA - Pollutant Table','Quarterly PMA - Pollutant Table'[CO2],"Yes"),
1-DIVIDE('Downtime'[CO2_Downtime],'Downtime'[Unit_Op_Hrs]))
The main thing to note here is that CO2_PMA is based off of the other two measures as well as another table to see if it should be calculated for a specific location. What I would like to do is to count the number of times that CO2_PMA is less than 99%. I’ve tried multiple different suggestions from this forum but none of the seem to work for my situation. Ideally I'd like to roll this up into Card so that I can show the total number of a values < 99%. In this case, the card would show a value of 2.
Any suggestions are appreciated.
Thanks,
-Scott-