cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
VipinReddy
Microsoft
Microsoft

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. 

VipinReddy_0-1629922601384.png

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. 

1 ACCEPTED SOLUTION

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,

vxiaotang_0-1630305997017.png

result

vxiaotang_1-1630306016787.pngvxiaotang_2-1630306031145.png

vxiaotang_3-1630306039693.png

 

 

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.

 

 

View solution in original post

6 REPLIES 6
v-xiaotang
Community Support
Community 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

parry2k
Super User
Super User

@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.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





parry2k
Super User
Super User

@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.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





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. 

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,

vxiaotang_0-1630305997017.png

result

vxiaotang_1-1630306016787.pngvxiaotang_2-1630306031145.png

vxiaotang_3-1630306039693.png

 

 

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.

 

 

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)

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors