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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Survey Plain Text Data - Setting Minimum Response Threshold

Hello everyone! I've got a puzzler here that I'd love to get some perspective on.

 

As part of a larger survey results dashboard, I have created a table visualization that shows plain text comments associated with individual identifiers. The visualization is filterable many ways. In some cases, a user would be able to filter down to fewer than 5 individual respondents, which exposes people's identity. This is the challenge I'm trying to fix.

 

For individual measures, I have a good solution:

 

Census - Inorganic Growth Employee Count = var result = DISTINCTCOUNT('Census - Inorganic Growth'[Empl ID])

return IF(DISTINCTCOUNT('Census - Inorganic Growth'[Empl ID]) >= 5, result)

 

The above works well for summary scores and most visualizations. However, I need to implement the same type of strategy to output a table. Here's the code I'm using right now -- it throws an error:

 

Comments Table (Filtered) = var result = CALCULATETABLE('2020-2021 - Comments')
return IF(DISTINCTCOUNT('2020-2021 - Comments'[EmployeeId]) >= 5, result)
 

Error received:

The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.

 

This seems like it might have a relatively simple fix. Any ideas? Thank you so much!

4 REPLIES 4
Anonymous
Not applicable

Seems a bit odd that this isn't doable in PowerBI. Anyone else have any ideas? This is mission critical for my team!

amitchandak
Super User
Super User

@Anonymous , seen like you are still creating a measure, not a table, that is why this error.

 

Also, I doubt you need to have some grouping involved at what level it should be >5. and that need a different approach

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you for helping, @amitchandak ! I changed the DAX expression to be in a "new table," but still am getting the same error.

 

I can't group the employee ID numbers; they need to be filterable many different ways. Maybe I'm misunderstanding?

Hi @Anonymous ,

This error cause by if statement in Power BI. 

Currently as far as I know, if statement not support to return table or multiple columns as expressions result. If statement should return a specific sclar value instead of table value. In addition, Power bi not support to create dynamic calculated column/table based on filter/slicer.

 

Best Regards,
Community Support Team _ Yingjie Li
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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.