Forum Discussion

kongyuancn's avatar
kongyuancn
Icon for Helper II rankHelper II
6 years ago
Solved

Get average on rows continas no blank

Hi All, I'm trying to get compare benchmark on different software stack. Here is a simple data set:   System       Stack1 Stack2 Stack3 Stack4 System1 1 4 6   System2 2 5     ...
  • V-lianl-msft's avatar
    6 years ago

    Hi kongyuancn ,

     

    Try to create a measure like this and put it into visual level filter.

    IgnoreNullValues = IF (
                            CALCULATE(DISTINCTCOUNT('Table'[Stack]),ALLSELECTED('Table'[Stack]))
                            = COUNTROWS(ALLSELECTED('Table'[Stack])), 
                            MAX('Table'[Benchmark]
                           ))

    Sample .pbix

     

    Best Regards,
    Liang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.