Forum Discussion

CS's avatar
CS
Icon for Advocate I rankAdvocate I
8 years ago
Solved

Grand Total Row Count When Using Measures, IF, and FILTER

I want to get the sectors that have increased their hours this month.    =IF( [Total Hours] > [Hours LM], IF( HASONEFILTER( 'Table B-7'[Super Sector] ), COUNTROWS( '...
  • Zubair_Muhammad's avatar
    8 years ago

    CS

     

    Give this a shot

     

    ????? =
    SUMX (
        FILTER ( ALLSELECTED ( 'Table B-7'[Super Sector] ), [Total Hours] > [Hours LM] ),
        CALCULATE ( COUNTROWS ( 'Table B-7' ) )
    )