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.
question | customer | anwser |
1 | a | ok |
1 | b | good |
1 | c | ok |
2 | a | rew |
2 | b | yellow |
2 | c | black |
i have this survey with two pie visuals each for each question
visual has tyhe answer and the count of customers.
when i click on good for example in the visual the other visual is blank because dataset is filtered in question id 1. is there a way to show the answer of the customers than answered good what did the answer in other questions in the second visual?
Solved! Go to Solution.
Hi @giorgiokatr ,
Since the slicer is from the same table, the visual will be affected the slicer.
There are two ways might solve the problem.
One way is to create a slicer table which has no relationship with fact table and use SELECTEDVALUE() function to get the count of value by slicer.
Another way is create a measure use ALL() function to get the count of value, for example:
CALCULATE(COUNT(value),FILTER(ALL(table),column=SELECTEDVALUE(column))).
Best Regards.
Jay
Hi @giorgiokatr ,
Since the slicer is from the same table, the visual will be affected the slicer.
There are two ways might solve the problem.
One way is to create a slicer table which has no relationship with fact table and use SELECTEDVALUE() function to get the count of value by slicer.
Another way is create a measure use ALL() function to get the count of value, for example:
CALCULATE(COUNT(value),FILTER(ALL(table),column=SELECTEDVALUE(column))).
Best Regards.
Jay
the problem is when i click on answer ok from first question the second visual should show me the result for the two customers that answered ok (customer a and c). it should show in my example one for rew and one for black (the answers of those two customers)
@amitchandakno it does not work the second visual is not showing results per filter.
@giorgiokatr , use a measure with removefilters(Table[anwser])
calculate(coutrows(Table) , removefilters(Table[answer]))
check example at https://www.linkedin.com/pulse/five-recent-power-bi-functions-you-should-use-more-often-amit-chandak
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |