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
Anonymous
Not applicable

Number comparison error in conditional column

Hi,

 

I am trying to compare two whole numbers in a conditional column. A equals compare work but a less than or equal compare give an error.

 

Equals works 

= Table.AddColumn(Previous, "NewCondCol", each if [IPAsInt] = VpnNet[StartIpAsInt] then true else false)

 

But I get an error when I change it to greater than or equal

= Table.AddColumn(Previous, "NewCondCol", each if [IPAsInt] >= VpnNet[StartIpAsInt] then true else false)

 

Error:

 

Expression.Error: We cannot apply operator < to types List and Number.
Details:
Operator=<
Left=List
Right=2384469417

 

Thanks

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi @Anonymous , 

According to your error, this seems to be related to the data type, I saw left value is List, I think you need to expand the list , then compare the value. By the way, you also could inform me more detailed information(such as your expected output and your sample data (by OneDrive for Business))? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

3 REPLIES 3
dax
Community Support
Community Support

Hi @Anonymous , 

According to your error, this seems to be related to the data type, I saw left value is List, I think you need to expand the list , then compare the value. By the way, you also could inform me more detailed information(such as your expected output and your sample data (by OneDrive for Business))? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

Anonymous
Not applicable

I see the problem now. I am comparing a number to a list and only equal and not equal are supported. 

 

Thanks

Greg_Deckler
Community Champion
Community Champion

I believe in Power Query it is le and ge


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.