Forum Discussion
ahpitre2
6 years agoFrequent Visitor
Retrieve server name in DAX
In SQL I can use SELECT @@servername to get the current server where query is running. Is there something similar in DAX where I can retrieve the server where a report is executing? I have a local (o...
ahpitre2
6 years agoFrequent Visitor
Do you know any way to retrieve environment variables via DAX? Thinking that it would be possible this way.
az38
6 years agoCommunity Champion
right now there is no such feature.
DAX is the only business logic language and it doesnt and shouldnt support system enviroment parameters
- ahpitre26 years agoFrequent Visitor
I think it would be useful, and doesn't hurt to be able to read environment variables. This is very common in other languages tools (VBA, .NET, JAVA, etc.). Anyway, thanks for your input.