Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
cspowerbi
New Member

Dropdown/Slicer for Questions and Visuals

I'm trying to find a solution for something that I know already has a solution, but I don't have the knowledge to know how to search for the answer; so, I'm asking the community. If I were wanting to create a dropdown of all my questions in Power BI, that when you select one question, the visual also autopopulates, how would I do that? Whenever I choose a slicer, I can pick one question, but the options is what I can filter on, not the questions themselves. For example, let's say I have three questions I want to make a dropdown for with their associated visuals. Let's say the questions are: "How much do you agree with the following statement? - The school provides a safe environment.", "How much do you agree with the following statement? - I feel comfortable sharing my thoughts in class.", and "How much do you agree with the following statement? - I feel welcomed by my school's community." I don't want a dropdown of "Strongly agree to strongly disagree", which is all I'm getting with using the traditional slicer. I want a dropdown where someone can pick the question they're wanting to see and the visual will display for that question. Thank you!

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @cspowerbi 

Please post some sample data in table form or pbix file.

This will help us better understand your current data model and the problem.

Best Regards,
Community Support Team _ Eason

 

View solution in original post

5 REPLIES 5
v-easonf-msft
Community Support
Community Support

Hi, @cspowerbi 

Please post some sample data in table form or pbix file.

This will help us better understand your current data model and the problem.

Best Regards,
Community Support Team _ Eason

 

parry2k
Super User
Super User

@cspowerbi I think I know where the problem is, your questions are part of the columns, not rows, or in other words, you have pivoted data and you need to unpivot it.

 

Transform Data -> Select columns (which are not question columns) ->Right Click -> Unpivot other columns

 

It will give you two new columns, called Attribute and Value, rename these columns as you see fit. 

 

Close and Apply

 

You can use the Attribute column as a slicer, which will have a drop-down of questions and you can visualize the data the way you want.

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

 

Learn about conditional formatting at Microsoft Reactor

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!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


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.

amitchandak
Super User
Super User

@cspowerbi , Not sure I got 100% what you need.

 

You can use interactions, and stop interaction between Question slicer -> and Question Visual

https://docs.microsoft.com/en-us/power-bi/service-reports-visual-interactions

Thank you all for your answers. I believe my issue was resolved. Thank you all for your comments!

Hi, @cspowerbi 

It's pleasant that your problem has been solved.

Can you share your solution here and accept it as solution to close this thread?

So that other community members will easily find the solution when they get the same issue.

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.