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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Jelle-Scheper
Frequent Visitor

DirectQuery Connection Showing Format Strings Instead of Numeric Values

 

Hello Power BI Community,

We've encountered an issue when connecting to our semantic model using DirectQuery—most values in our dashboards are now being displayed as format strings rather than the expected numerical values.

For example, here's one of our measures:

Measure:
NetSales = SUM(FactSalesLine[TotalExclVat])
formatString: "€"\ #,0;-"€"\ #,0;"€"\ #,0
 
When using DirectQuery, this behavior occurs, yet it seems different when using a Live Connection.

Is there any documentation or known guidance on how formatting should behave under DirectQuery, or are we missing a specific configuration to correct this? Any insights or pointers would be greatly appreciated.

Thanks in advance for your help!

 

Behavior on DirectQuery:

JelleScheper_0-1741356159472.jpeg

 

Behavior on Live Connection:

JelleScheper_1-1741356171753.jpeg

 

9 REPLIES 9
v-sathmakuri
Community Support
Community Support

Hi @Jelle-Scheper ,

 

I hope this information proves helpful. Feel free to reach out if you have any further questions or would like to discuss this in more detail. If responses provided answers your question, please accept it as a solution so other community members with similar problems can find a solution faster.

 

Thank you!!

v-sathmakuri
Community Support
Community Support

Hi @Jelle-Scheper ,

 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.

 

Thank you!!

v-sathmakuri
Community Support
Community Support

Hi @Jelle-Scheper ,

 

Thank you for reaching out to Microsoft Fabric Community.

 

I used the same measure that you provided and tried to replicate the issue, but it’s working fine on my end. Please see the screenshot below for reference.

 

ARekha_0-1744205116993.png

 

Please try installing the new version of power bi desktop file from here (https://www.microsoft.com/en-us/download/details.aspx?id=58494 ). Let us know if you are still facing the same issue.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks & Regards,

Rekha,

Customer Support Team.

The problem presented itself in Power BI Service as well. Updating desktop versions was not the solution.

Hi @Jelle-Scheper ,

 

You can apply the FORMAT function as shown below to achieve the expected results, even when using DirectQuery mode. This approach has worked for me, please refer to the screenshot below for reference. Let me know if it doesn’t work on your end.

 

NetSalesFormatted =
FORMAT(SUM(Customers[ID]), "-€\ #,0")
 
vsathmakuri_0-1744813318942.png

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thank you!!

That would result in an unsortable measure in tables as you would sort on a text data type. We've found our own solution now that does not involve such comprimises. Thanks!

Hi @Jelle-Scheper ,

 

Glad to hear you found a solution! If possible, could you please share it here and mark it as the accepted answer? It would be really helpful for others who might run into the same issue.

 

Thank you!!

Jasper_YourBI
Regular Visitor

I am also facing this issue - no clear solution so far.

danielvdc
New Member

I'm having similar issues.. Haven't found a working solution so far

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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