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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
webportal
Impactful Individual
Impactful Individual

Auto detect user language

Hello,

 

Is there a way to detect a user language?

In DAX, one may use USERNAME() to get the user name, is there anything equivalent (in DAX, M, or elsewhere) to get the user's language?

 

Thanks for helping!

2 REPLIES 2
TomMartens
Super User
Super User

Hey,

 

unfortunately this is not possible using DAX or M.

 

Maybe using python as described here: https://stackoverflow.com/questions/3425294/how-to-detect-the-os-default-language-in-python can solve your issue.

 

But, you have to check if this still will also work if the report gets published to the service.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

@TomMartens 

Thanks for helping!

I'm more familiar with R...

 

Anyway, I find it interesting to read on MS documentation about the USERCULTURE() function here.

Although it doesn't exist on my Power BI Desktop.

 

Is there a trick or a workaround or something?

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.