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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Problems with DAX MID functtion in new version?

Hello everybody,

 

Am I the only one who is experiencing this issue:

 

Suddenly the MID functtion seems not to work anymore...see examples below.

 

Can anyone help or is anyone facing the same issue?

 

thanks and br

 

christoph

 

modelcalc =
MID (
t_plc03_models_total_live[mod],
6,
10
)
 
Error: The syntax for '10' is incorrect. (DAX(MID ( t_plc03_models_total_live[mod], SEARCH ( t_plc03_models_total_live[Modeltype], t_plc03_models_total_live[mod] ) + 5. 10))).
 
ExampleString: "Totalsnaiv"
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Found the issue: I opened a pbix file (created in German OS environment) in a not German OS environment. Once opened again in German environment, it worked again.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Something isn't working at all:

I also get an error with this simple formula:

 

STG_Name =
IF ( STG[STG_ID] = 1, 1, 2 )

The syntax for '1.' is incorrect. (DAX(IF(STG[STG_ID] = 1. 1. 2))).

 

I also tried with semicolons. Didn't change anything.

thanks

 

Hi @Anonymous ,

By my tests with the latest version of Power BI Desktop (2.70.5494.701 64-bit (June 2019), I cannot reproduce your scenario.

Untitled.png

Please check if you have installed the latest version of Power BI Desktop.

If you still need help, please share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.

Best  Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Found the issue: I opened a pbix file (created in German OS environment) in a not German OS environment. Once opened again in German environment, it worked again.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.