Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 216067

Count the number of times a measure is less than a user specified value

$
0
0

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.

 

 

LocationCO2_DowntimeUnit_Op_HrsCO2_OMA
Location 1126999.60%
Location 20294100%
Location 3152099.80%
Location 4176399.90%
Location 56114399.50%
Location 68117699.30%
Location 7 1049 
Location 8 605 
Location 9 1046 
Location 10 1016 
Location 11545998.90%
Location 12546498.90%
Location 13 1178 
Location 14 1178 
Location 155117899.60%
Location 16565599.20%
Location 1700100%
Location 180162100%
Location 1901172100%

 

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-


Viewing all articles
Browse latest Browse all 216067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>