Forum Discussion

vividarinda's avatar
vividarinda
Icon for Helper II rankHelper II
2 years ago
Solved

Flag The Data and Show Max Min with Other Column

Hi All, I have the data like this : table historical ->   table logic ->     the visualization  like this : but expected result like this :   i want to show the visu...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi vividarinda 

     

    Here I create 2 measure:

    BlowbuPress =
    VAR _currentUnitno =
        SELECTEDVALUE ( 'raw data'[unitno] )
    RETURN
        CALCULATE (
            MAX ( 'raw data'[blowbypress_max] ),
            FILTER ( ALLSELECTED ( 'raw data' ), 'raw data'[unitno] = _currentUnitno )
        )
    
    Boost_press =
    VAR _currentUnitno =
        SELECTEDVALUE ( 'raw data'[unitno] )
    RETURN
        CALCULATE (
            MIN ( 'raw data'[boost_press_max] ),
            FILTER ( ALLSELECTED ( 'raw data' ), 'raw data'[unitno] = _currentUnitno )
        )
    

    The result is as follow:

     

    Best Regards

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