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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
HugoTran
Frequent Visitor

Filter Power BI Dax based on condition

Hi All - 

 

I am trying to filter a table base on the following condition (Status=New, SME group is not populated (blank)) but it came back with error " A single value for column [] in table [] can not be determined. This can happen when a measure formula rfers to column that contain many values without specifying aggreation..." I am new with this and any help are greatly appreciated. Thank you in advance!

HugoTran_1-1704736718340.png

 

 

1 ACCEPTED SOLUTION

Hi, @HugoTran 

 

filtercondition =

If( min(tablename[status])="new" || min(tablename[sme group assigned])<>blank(),"filter","not filter")

View solution in original post

12 REPLIES 12
Dangar332
Super User
Super User

hi, @HugoTran 

when you use measure you need aggegation functions like sum(), min(), max(),....

 

try like below

 

filtercondition =
 min(tablename[status])="new" || min(tablename[sme group assigned])<>blank(),"filter","not filter")

Thanks for the help. When I update the agg function to MIN, I got error "Too many arguemtns were passed to the FIRSTNONBLANK funciton. The maximum argument count for the function is 2."

Hi, @HugoTran 

 

filtercondition =

If( min(tablename[status])="new" || min(tablename[sme group assigned])<>blank(),"filter","not filter")

Anonymous
Not applicable

@Dangar332  I'm pretty sure you saw that I was already helping here, and stepped on my work none the less.

@Anonymous Definitely appreciated for your help. Thank you! 

Hi, @Anonymous 

 

Listen brother I am just helping @HugoTran it's not a competition.

Got it. Thanks a bunch.

correction - MIN function*

Anonymous
Not applicable

@HugoTran  You'll need to use an aggregation function in those cases (like MAX), or you can try using the FIRSTNONBLANK function with your example.

 

Thank you for the quick reply. when I added the MAX aggr function, I get the following error.

HugoTran_0-1704740089910.png

 

Anonymous
Not applicable

@HugoTran  I edited my initial response. Try FIRSTNONBLANK with your example.

Tried FIRSTNONBLANK and get another error "Too many arguemtns were passed to the FIRSTNONBLANK funciton. The maximum argument count for the function is 2."

HugoTran_0-1704741757996.png

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.