Forum Discussion

VipinReddy's avatar
VipinReddy
Icon for Microsoft Employee rankMicrosoft Employee
5 years ago
Solved

Filter slicer based on other slicer selection

Hi, 

 

I have a requirement were the client wants to filter the slicer using an other slicer. I have three slicers Year, Month and Project Status as shown below. 

The requirement is only when a user selects project status as completed, the fiscal year and month should be enabled. When other status are selected the year and month filter should be blank or disabled. 

 

Thanks in advance. 

  • v-xiaotang's avatar
    v-xiaotang
    5 years ago

    Hi VipinReddy 

    You can make the following adjustments on parry2k's measure,

     

    Project Selected = IF ( SELECTEDVALUE ( 'Table'[Project Status] ) = "Completed", 1,0 )

     

    then put the measure into the visual level filter,

    result

     

     

    Best Regards,

    Community Support Team _Tang

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

     

     

8 Replies

  • VipinReddy create a measure as below and then use it as a visual level filter in other slicers  where the value is equal to 1

     

    Project Selected = IF ( SELECTEDVALUE ( ProjectTable[ProjectColumn] ) == BLANK(), 0, 1 )

     

    Tweak the above measure as you see fit.

     

    Follow us on LinkedIn

     

    Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

     

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

    • VipinReddy's avatar
      VipinReddy
      Icon for Microsoft Employee rankMicrosoft Employee

      I have used the following measure and in visual level filter I have added 'is 0' but when I select Completed only 6 month names are showing. What could be the reason? 

       

      Selection Status = IF(SELECTEDVALUE('GPI projecthygiene'[OverAllProjectStatus])="Completed",0,1)
    • VipinReddy's avatar
      VipinReddy
      Icon for Microsoft Employee rankMicrosoft Employee

      In the measure you have provided there is no reference to the project status as complete. My requirement is when user selects project status as completed only then he gets to filter using Month and year. I the user selects staus as all or any other than completed then the month and year slicer should be blank. 

      • v-xiaotang's avatar
        v-xiaotang
        Icon for Community Support rankCommunity Support

        Hi VipinReddy 

        You can make the following adjustments on parry2k's measure,

         

        Project Selected = IF ( SELECTEDVALUE ( 'Table'[Project Status] ) = "Completed", 1,0 )

         

        then put the measure into the visual level filter,

        result

         

         

        Best Regards,

        Community Support Team _Tang

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

         

         

  • VipinReddy I have no idea what you are doing and why the logic is changed, the solution I provided was based on the original question you posted.

  • v-xiaotang's avatar
    v-xiaotang
    Icon for Community Support rankCommunity Support

    Hi VipinReddy 

    Have you solved this problem? If yes, could you kindly accept the answer helpful as the solution (or kindly share your solution ). so the others can find it more quickly.
    really appreciate!
    Any question, please let me know. Looking forward to receiving your reply.


    Best Regards,
    Community Support Team _Tang