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
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!
Solved! Go to Solution.
Hi @Kate_D ,
The Table data is shown below:
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
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.
Hi @Kate_D ,
The Table data is shown below:
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
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 36 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 38 | |
| 34 | |
| 23 |