Forum Discussion

kteja's avatar
kteja
Regular Visitor
9 months ago

Camel Case Displaying as Lowercase When Exporting to Excel

Hi Community,
I'm facing an issue when exporting data from Power BI to Excel.
My report is built on DirectQuery, and the source is Snowflake.

In the Power BI table visual, the text appears correctly in camel case. However, when I export the same data to Excel, the text in that row shows up entirely in lowercase.

Example - 
Power BI : Camel case (correct)

Excel export : Completely lowercase

 

7 Replies

  • Shivu-2000's avatar
    Shivu-2000
    Icon for Responsive Resident rankResponsive Resident

    Hii kteja 

    This is a known behavior in Power BI exports, especially when using DirectQuery with sources like Snowflake. The issue is not actually Excel, but how Power BI’s export engine pulls the data from the underlying model.

    In DirectQuery mode, what you see in Power BI visuals ≠ what gets exported.
    Excel receives the raw Snowflake values—hence “camelCase” becomes all lowercase.

    To ensure proper casing in export, you must:

    ✔ store the formatted text in the model (Import mode or calculated column),
    OR
    ✔ fix casing at source (Snowflake).

     

     

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

    • kteja's avatar
      kteja
      Regular Visitor

      Hi Shivu-2000,

      Thanks for the explanation — I understand your point about how the export engine pulls data differently in DirectQuery.

      However, in my case the values in Snowflake are already in the correct camel-case format. The issue is that only a few specific rows are being converted to lowercase during export, while the rest of the dataset exports correctly.

      I also can’t apply any text-formatting logic in Power BI and snowflake, because some rows are intentionally meant to remain lowercase based on the client’s requirement. So applying a transformation would modify valid lowercase values, which I need to avoid.

      This inconsistency for just a few rows is what I’m trying to troubleshoot. If you have any suggestions on how to handle selective casing issues in DirectQuery exports, I’d really appreciate it.

      • v-hashadapu's avatar
        v-hashadapu
        Icon for Community Support rankCommunity Support

        Hi kteja , Thank you for reaching out to the Microsoft Community Forum.

         

        What you’re seeing usually happens when the export engine sends a slightly different SQL request than the one used to render the visual. Even though the values in Snowflake are stored in proper camel case, DirectQuery exports don’t reuse the same query Power BI uses for visuals. Instead, they issue a simplified query that can bypass metadata, lose collation hints or hit a different expression path in a view or join. When that happens, only certain rows, typically the ones coming from a branch of the query that applies an implicit LOWER(), a cast or a case insensitive collation, come back in lowercase. That’s why the visual looks perfect, but the export doesn’t match for only a handful of rows.

         

        Run the actual export query directly in Snowflake using Performance Analyzer. If those few rows also return lowercase there, then you know the export engine is triggering a different code path upstream. If they return camel case in Snowflake but still export lowercase, then the issue is on the Power BI side and it’s an inconsistency in how DirectQuery exports handle text fields. In either scenario, the only reliable fix without touching valid lowercase rows is a source side conditional expression that corrects casing only for the specific problematic patterns, leaving intentional lowercase values untouched.

         

        Thank you Shivu-2000  for your valuable response.

  • v-hashadapu's avatar
    v-hashadapu
    Icon for Community Support rankCommunity Support

    Hi kteja , Hope you are doing well. Kindly let us know if the issue has been resolved or if further assistance is needed. Your input could be helpful to others in the community.

  • v-hashadapu's avatar
    v-hashadapu
    Icon for Community Support rankCommunity Support

    Hi kteja , Hope you're doing fine. Can you confirm if the problem is solved or still persists? Sharing your details will help others in the community.

    • kteja's avatar
      kteja
      Regular Visitor

      Hi v-hashadapu 
      Issue is not yet resolved, As i rasied this concern with Microsoft and the investigation is in progess.