Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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
Solved! Go to Solution.
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.
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.
I see the problem now. I am comparing a number to a list and only equal and not equal are supported.
Thanks
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 8 | |
| 7 | |
| 7 |