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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Kate_D
Frequent Visitor

Filtering Values

Hello. I an trying to create yes/no slicer based of responses provided to surveys. The issue is that some surveys have received both responses and no responses due to multiple respondents assigned. When filtering the surveys based on whether responses have been provided or not, the same survey gets returned marked both yes and no (Ex. Delta and Netflix as shown in the table below).  In other words, I am trying to get back the surveys that received zero responses and surveys that have been answered at least once. Thank you!

 

table.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Kate_D ,

The Table data is shown below:

vzhouwenmsft_0-1722390292985.png

Use the following DAX expression to create a column

Column = 
VAR _Survey = [#Survey]
VAR _result = COUNTROWS(FILTER('Table',[#Survey] = _Survey && 'Table'[Responded Yes/NO] = "YES"))
RETURN 
IF(ISBLANK(_result),"NO","YES")

Final output

vzhouwenmsft_1-1722390335926.png

 

Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Kate_D ,

The Table data is shown below:

vzhouwenmsft_0-1722390292985.png

Use the following DAX expression to create a column

Column = 
VAR _Survey = [#Survey]
VAR _result = COUNTROWS(FILTER('Table',[#Survey] = _Survey && 'Table'[Responded Yes/NO] = "YES"))
RETURN 
IF(ISBLANK(_result),"NO","YES")

Final output

vzhouwenmsft_1-1722390335926.png

 

Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.