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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
michaelsh
Kudo Kingpin
Kudo Kingpin

Help with measure: Questionnaire report - connect answers

Hello friends,

I have a simple Question-Answer table. It has ID field that defines a person who answered, also one question can have multiple answers.

I want to show on my dashboard visuals with answers - separate visual for every question.

But I want it to be interactive, such that when a user clicks on an answer for any certain question, the other visuals will show what answers were given by these same people for other questions. 
So, for example, if I click on 14 as an answer to "How old are you" question, I want the visual of "What Pets do you like" to show the following answers: 2 Dogs, 1 Cats, and 1 Birds, because these answers were given by the two sudents that answered "14".

I feel that I can do it with a measure, or maybe to change a model somehow.

Please help.

Thanks

 

michaelsh_1-1635767049346.png

 

 

1 ACCEPTED SOLUTION

Hi @michaelsh 

Thanks for your reply, and thanks for your kudo!

 

But just I mentioned above, create only ONE smart generic measure and without creating separate tables for each question is not possible, because the value you click should be a column from a separate table not measure. 

vxiaotang_0-1636613939940.png

 

The reason why these should be column from a separate table is, the other 3 table will disappear if you use the column from same table.

For example,

vxiaotang_1-1636613939942.png

 

vxiaotang_2-1636613939770.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

5 REPLIES 5
v-xiaotang
Community Support
Community Support

Hi @michaelsh 

Thanks for reaching out to us.

 

If you want the visuals to show values related to the value you click in the "How old are you" visual, the value you click should be column not measure. I create a sample for your reference, hope it helps!

vxiaotang_0-1636006058466.png

vxiaotang_1-1636006079647.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.

@v-xiaotang 

First of all, that you so much for taking the time!!! I really appreciate it!

I see what you've done here:

- Created calculated tables for each question

- Made both-directional filter
- Created specific measures for each question using ALLEXCEPT

That works exactly like I wanted it to, so that's great!

Nevertheless, my challenge is to create only ONE smart generic measure and without creating separate tables for each question. I'll explain:

My actual model based on a questionnaire with more than 30 questions. And questions constantly may be added. So I don't want to create a table and a measure for each question.

I will have to add visuals filtered on each question, but inside them I want to use a generic smart measure that "listens" to what other visuals are clicked on and shows the results accordingly. 
I know it is challenging, that's why I published this qustion here.

I will very much appreciate if you can help me with this.

Hi @michaelsh 

Thanks for your reply, and thanks for your kudo!

 

But just I mentioned above, create only ONE smart generic measure and without creating separate tables for each question is not possible, because the value you click should be a column from a separate table not measure. 

vxiaotang_0-1636613939940.png

 

The reason why these should be column from a separate table is, the other 3 table will disappear if you use the column from same table.

For example,

vxiaotang_1-1636613939942.png

 

vxiaotang_2-1636613939770.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.

amitchandak
Super User
Super User

@michaelsh , Not very clear. But seems like first visual should interact only with the second top and the second top should interact with the rest 3 but not the 1st one https://docs.microsoft.com/en-us/power-bi/service-reports-visual-interactions

 

The visual on the left is just showing the raw data.

I need all other visuals to interact.

It is not a simple interaction, the measure has to be very smart.

My question is about how to build a measure

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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