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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply

Custom Column Error

Hi

I am using the Call Quality Dashboard direct query connector and I have added a custom column to the dataset which is a very simple DAX formula as follows:

 

SLA Indicator = if (Query1[Overall Avg Network MOS]="hello","Green","Red")
 
When I attemp to add this SLA Indicator to a table visual I get the following error:
 
Error Message:
OLE DB or ODBC error: Specified argument was out of the range of valid values.
Parameter name: index.
 
Any ideas on this one please?
 
Thanks 

 

3 REPLIES 3
v-zhenbw-msft
Community Support
Community Support

Hi @PowerBiNoobie1 ,

 

The Direct Query mode has some limitations, you can refer this documents.

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-about

 

Maybe you can create a measure like this,

 

cus1.jpg

 

If it doesn’t meet your requirement, could you please provide a mockup sample based on fake data?

It will be helpful if you can show us the exact expected result based on the tables.

 

Please upload your files to OneDrive For Business and share the link here. Please don't contain any Confidential Information or Real data in your reply.

 

Best regards,

 

Community Support Team _ zhenbw

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

amitchandak
Super User
Super User

@PowerBiNoobie1 , This seems like the correct formula. Is there anything you added to this visual ?

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

@amitchandak Hi again 🙂 

Thanks for your response.  Sorry how do you mean is there anything I added to the visual? I am just using a table visual with the Overal Average Network MOS value column and the SLA Indicator custom column but it just throws that error all the time.

If I remove SLA Indicator I see the values in the table. 

Thanks!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.