Forum Discussion

sanjanarama's avatar
sanjanarama
Icon for Resolver I rankResolver I
4 years ago
Solved

slicer selection result

I have a dropdown slicer for activity column. if any activity is selected then results should be displayed based on column "Part one" column.

 

ThreatNodeActivityPart OnePart TwoPart Three
Area OneDownName 1 Base Management 
Area OneDownName 2Base ManagementProduction ShopFlow Assurance
Area OneUpName 3 Production ShopBase Management
Area OneUpName 4 Production ShopProcess Engineer
Area OneUpName 5 Flow AssuranceProduction Shop
Area OneLeftName 6 Production ShopFlow Assurance
Area OneLeftName 7 Production ShopFlow Assurance
RoadRightName 8 Base ManagementProduction Shop
RoadRightName 9Base ManagementGatewayFlow Assurance
Upper DeckRightName 10 Base ManagementProduction Shop
Upper DeckRightName 11Base ManagementProduction ChemistProcess Engineer



for example. 
if activity "Name 1" is selected , corresponding "part one" value is blank, the result should display as "no results"

 


if  activity "Name 2" is selected , corresponding "part one" value is "Base Management"/ any value in it, the result should display as table of its value

 

  • Shishir22's avatar
    Shishir22
    4 years ago

    Hello sanjanarama ,


    I dont think that will be acheivable directly.

    Though you can try workaround-

     

    Apply visual level filter on visual as Part One not equals to Blank.

     

    Try to create a measure as below, add it into card visual and place it behind table visual keeping table visual backgournd as off.

     

     

    Measure = if(HASONEVALUE(Data[Part One]) && min(Data[Part One])= BLANK(),"No Results as Part one is blank","")

     


    Turn off the Category label to off and place this card visual behind table visual.

     

4 Replies

  • Hello sanjanarama ,


    As per my understanding from above post you are getting blank for Part One and you want to replace it with "No Results"

    Use below calculated column in place of Part One.

     

    Column = if(ISBLANK(Data[Part One]),"No Result",Data[Part One])

     

    Please mark it as solution if it resolves your issue. Kudos are also appreciated.

     

    Cheers,

    Shishir

      • Shishir22's avatar
        Shishir22
        Icon for Solution Sage rankSolution Sage

        Hello sanjanarama ,


        I dont think that will be acheivable directly.

        Though you can try workaround-

         

        Apply visual level filter on visual as Part One not equals to Blank.

         

        Try to create a measure as below, add it into card visual and place it behind table visual keeping table visual backgournd as off.

         

         

        Measure = if(HASONEVALUE(Data[Part One]) && min(Data[Part One])= BLANK(),"No Results as Part one is blank","")

         


        Turn off the Category label to off and place this card visual behind table visual.