Forum Discussion
PowerBI Expression Evaluation Thread Delegation
- 7 months ago
Hi Anonymous ,
Thank you for confirming. Since you are using Power BI Report Server, please note that it operates on the same report processing engine as SSRS. With this engine, report expressions may be evaluated across multiple threads, depending on how the report is processed and rendered. As a result, changes to Thread.CurrentThread.CurrentCulture may not persist throughout all expression evaluations.
While setting the thread culture in a custom helper might sometimes work, it is not a reliable or supported solution in Power BI Report Server.
For consistent and predictable formatting, it is best to explicitly specify the culture when formatting values, such as by using ToString or by passing the culture to your helper methods.
I hope this clarifies the situation. If I’ve misunderstood any part of your situation, please let us know.
Regards,
Yugandhar.
Hi Anonymous ,
Thanks for reaching out to the Fabric Community. Just to clarify and better understand the scenario, are you trying this in SSRS?
Regards,
Yugandhar.
- Anonymous7 months agoNot applicable
I am using PowerBI Report Server
- V-yubandi-msft7 months agoCommunity Support
Hi Anonymous ,
Thank you for confirming. Since you are using Power BI Report Server, please note that it operates on the same report processing engine as SSRS. With this engine, report expressions may be evaluated across multiple threads, depending on how the report is processed and rendered. As a result, changes to Thread.CurrentThread.CurrentCulture may not persist throughout all expression evaluations.
While setting the thread culture in a custom helper might sometimes work, it is not a reliable or supported solution in Power BI Report Server.
For consistent and predictable formatting, it is best to explicitly specify the culture when formatting values, such as by using ToString or by passing the culture to your helper methods.
I hope this clarifies the situation. If I’ve misunderstood any part of your situation, please let us know.
Regards,
Yugandhar.