Forum Discussion

vjnvinod's avatar
vjnvinod
Impactful Individual
7 years ago
Solved

Table visual help

Dear community,

 

Take a look at the below pic. its a table visual in power BI

my problem is, i need to hide or filter out some fileds lets say the one you see here "im" which has -57.1M. while we do that we also need to make sure the total is unaffected.(that means even i take off/hide  "-57.1M", my total should remain as 851.6M

 

any help on this will be highly appreciated

 

 

 

14 Replies

  • v-cherch-msft's avatar
    v-cherch-msft
    Microsoft Employee

    Hi vjnvinod

     

    You may use visual level filter to hide some fileds.Then you may create a measure with HASONEVALUE Function. Show a simplified sample as below. If it is not your case, please share some sample data for your scenario so that we could help further on it.

    Test =
    IF (
        HASONEVALUE ( Table3[Column1] ),
        CALCULATE ( SUM ( Table3[Column2] ) ),
        CALCULATE ( SUM ( Table3[Column2] ), ALL ( Table3[Column1] ) )
    )

    Regards,

    Cherie

      • v-cherch-msft's avatar
        v-cherch-msft
        Microsoft Employee

        Hi vjnvinod

         

        You may try to use below measure and set the visual level filter as below:

        Test =
        IF (
            HASONEVALUE ( Inbound[Line] ),
            CALCULATE ( SUM ( Inbound[TER_FYTD_USD] ) ),
            CALCULATE ( SUM ( Inbound[TER_FYTD_USD] ), ALL ( Inbound[Line] ) )
        )

         

        Regards,

        Cherie