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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.