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
giorgiokatr
Helper V
Helper V

filtering survey questions

 

questioncustomeranwser
1aok
1bgood
1cok
2arew
2byellow
2cblack

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?

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

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

4 REPLIES 4
v-jayw-msft
Community Support
Community Support

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
giorgiokatr
Helper V
Helper V

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)

giorgiokatr
Helper V
Helper V

@amitchandakno it does not work the second visual is not showing results per filter.

amitchandak
Super User
Super User

@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

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.

Top Solution Authors