Forum Discussion

0553914's avatar
0553914
Frequent Visitor
4 years ago
Solved

Count values in a matrix over a certain value

I have a matrix that displays the number of units processed every 15 minutes by different areas of my operation.  Each area is supposed to process 30 units every 15 minutes.  I've built a real-time d...
  • edhans's avatar
    4 years ago

    You could use a measure that counts the number of times the total is over 30 when iterating over the time component. 

    Over 30 =
    COUNTROWS(
        FILTER( VALUES( 'Date'[Time Value] ), [Some Total Measure] >= 30 )
    )
    

     

    If over both time and wings, then this:

    Over 30 =
    COUNTROWS(
        FILTER(
            SUMMARIZE( FactTable, 'Date'[Time Value], DimensionTable[Wings] ),
            [Some Total Measure] >= 30
        )
    )
    

    For more help though, we need some data to work with and an undestanding of your model. See below for links to show how to provide usable data. We cannot use images to get data from. Great for what your target is, but I cannot type all of that in.

     

    How to get good help fast. Help us help you.

    How To Ask A Technical Question If you Really Want An Answer

    How to Get Your Question Answered Quickly - Give us a good and concise explanation
    How to provide sample data in the Power BI Forum - Provide data in a table format per the link, or share an Excel/CSV file via OneDrive, Dropbox, etc.. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.