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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Tob_P
Helper V
Helper V

List.Count(Text.PositionOf

Hi,

 

I have the following Conditional Column looking for the count of occurrences of a CQ prefix.

 

TobPDELETE2.png

The Quote No column can also have prefixes of BOQ or DQ. So when I refresh my table, I return many thousands of errors for the fields that contain BOQ or DQ. Can anyone advise of an amendment to make to the custom column formula that would ignore DQ/BOQ and stop the errors?

 

Thank you.

1 ACCEPTED SOLUTION
Tob_P
Helper V
Helper V

@HotChilli 

 

Thanks for coming back to me. Closer inspection revealed the errors where because there were blank values in the column which were being treated as null values which was causing the error. Replaced null with blanks and problem solved.

 

Probably should have investigated a bit more before I post here!

View solution in original post

2 REPLIES 2
Tob_P
Helper V
Helper V

@HotChilli 

 

Thanks for coming back to me. Closer inspection revealed the errors where because there were blank values in the column which were being treated as null values which was causing the error. Replaced null with blanks and problem solved.

 

Probably should have investigated a bit more before I post here!

HotChilli
Community Champion
Community Champion

Can you provide some sample data and explain more clearly what the problem is?

The code is looking for "CQ" and doesn't refer to BOQ or DQ.  What errors are you receiving?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors