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
Sascha_17
Frequent Visitor

DAX Syntax Error

Dear all

 

I have a DAX Syntax problem in PowerBI Desktop. I have following formula 'IF(Column1 > 5, "hh", "hh")'. PowerBI sends me an error message that the syntax is not right. Strangely in the error message, powerbi replaced my comma after 5 with a point.

 

Please see picture below:

 

PowerBI Bug

 

Anybody knows whats the problem here is ?

1 ACCEPTED SOLUTION
Sascha_17
Frequent Visitor

Thanks for your answers.

 

I found the answer / workaround by myself. I have to add a space before the comma, then PowerBI accept my DAX Syntax...

View solution in original post

3 REPLIES 3
Sascha_17
Frequent Visitor

Thanks for your answers.

 

I found the answer / workaround by myself. I have to add a space before the comma, then PowerBI accept my DAX Syntax...

v-haibl-msft
Microsoft Employee
Microsoft Employee

@Sascha_17

 

How about the result if you copy the second comma, paste and replace the first comma in your DAX syntax?

If issue still persists, could you please upload your PBIX file to some file hosting services like OneDrive, and then share to me?

 

Best Regards,

Herbert

dkay84_PowerBI
Microsoft Employee
Microsoft Employee

Is column 1 set to numeric data type?

 

Also what is your regional setting?

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.