Forum Discussion

rob_vander2's avatar
rob_vander2
Icon for Helper II rankHelper II
1 year ago
Solved

Restrict measure calculation with field parameter based on filter selection

Hi All,   I have one table report with one Dimension and Field parameter with two measure. By default table visual displays values for both the measure in the filter context of dimension which work...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi rob_vander2 

    You can refer to the following solution.

    Sample data

    I create the following measure paramaters.

    Measure = MAX('Table'[Test1])
    Measure 2 = SUM('Table'[Test2])

    And i have a filter table, if it is filtered, then display the measure paramaters, or it will be blank.

    We can create a measure.

    Measure 3 = IF(ISFILTERED('Table (2)'[IsFilter]),1,0)

    Then create a visual and put the measure3 to the visual filter.

     

    Outptut

     

     

    Best Regards!

    Yolo Zhu

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