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

Is this a DAX Error ?

This is an error on Data tools but as Tabular is the companion by excellense with Power BI, i'll post this here as a DAX error:

1) Can't format a number to string, every number [at least my 5 tries] where converted to this string 0tri0g
erro1.PNG

 

2) What is this error? 

 

erro2.PNG 

2 ACCEPTED SOLUTIONS
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

Please try this formula.

 

Column 2 = FORMAT('Table1'[Column1],"")

Then you could get the right output.

 

format.PNG

 

For reference, you could have a good look at how to use Format function in DAX.

 

If you still need help, for your scenario, it seems that you are working SSAS Tabular, you'd better to post your problem to SSAS Community to get more professional help.

 

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.

View solution in original post

Hi @Anonymous,


 


About the image you place, it's PowerQuery right? So i can't use it because my PBI reports are connected to SSAS,




Format(aaa, "string") fails and it's an error, right?

 

1. I used Dax foruma with FORMAT function in Power BI not in Power Query.

 

2. It seems that we could not use the parameter like "string" in Format function. You'd better have a good look at this document which introduces how to use the parameter in FORMAT function.

 

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.

View solution in original post

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

Please try this formula.

 

Column 2 = FORMAT('Table1'[Column1],"")

Then you could get the right output.

 

format.PNG

 

For reference, you could have a good look at how to use Format function in DAX.

 

If you still need help, for your scenario, it seems that you are working SSAS Tabular, you'd better to post your problem to SSAS Community to get more professional help.

 

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

It works,

Format(aaa, "string") fails and it's an error, right?

 

About the image you place, it's PowerQuery right? So i can't use it because my PBI reports are connected to SSAS,

Hi @Anonymous,


 


About the image you place, it's PowerQuery right? So i can't use it because my PBI reports are connected to SSAS,




Format(aaa, "string") fails and it's an error, right?

 

1. I used Dax foruma with FORMAT function in Power BI not in Power Query.

 

2. It seems that we could not use the parameter like "string" in Format function. You'd better have a good look at this document which introduces how to use the parameter in FORMAT function.

 

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.

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.