<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Retrieve server name in DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/935686#M9769</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="186128" data-lia-user-login="ahpitre2" class="lia-mention lia-mention-user"&gt;ahpitre2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;right now there is no such feature.&lt;/P&gt;
&lt;P&gt;DAX is the only business logic language and it doesnt and shouldnt support system enviroment parameters&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2020 14:14:25 GMT</pubDate>
    <dc:creator>az38</dc:creator>
    <dc:date>2020-02-17T14:14:25Z</dc:date>
    <item>
      <title>Retrieve server name in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/932187#M9591</link>
      <description>&lt;P&gt;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 (on my PC) Power BI Reporting Server installed. I also test reports on Dev Power BI servers. Currently working on a report that builds a URL via DAX and allows user to click on Power BI URL and a tab opens with a related SSRS details report. Current URL is being built with the value of the server hard coded, if possible would like to generate the parent section of URL dynamically. This is my current URL :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;SSRS_Parent_URL = "http://someserver.local/ReportServer/Pages/ReportViewer.aspx?%2fTeam%2fMarketingReport&amp;amp;"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I would like to accomplish :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;SSRS_Parent_URL = ParentServer &amp;amp; "/ReportServer/Pages/ReportViewer.aspx?%2fTeam%2fMarketingReport&amp;amp;"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ParentServer would be a DAX measure that dynamically retrieves the underlying servername. Researched online, but till now I haven't found a viable solution.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 14:06:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/932187#M9591</guid>
      <dc:creator>ahpitre2</dc:creator>
      <dc:date>2020-02-17T14:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve server name in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/934581#M9700</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="186128" data-lia-user-login="ahpitre2" class="lia-mention lia-mention-user"&gt;ahpitre2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I dont see any chance to acknowledge server URL with DAX&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 19:23:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/934581#M9700</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-02-16T19:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve server name in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/935669#M9768</link>
      <description>&lt;P&gt;Do you know any way to retrieve environment variables via DAX? Thinking that it would be possible this way.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 14:03:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/935669#M9768</guid>
      <dc:creator>ahpitre2</dc:creator>
      <dc:date>2020-02-17T14:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve server name in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/935686#M9769</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="186128" data-lia-user-login="ahpitre2" class="lia-mention lia-mention-user"&gt;ahpitre2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;right now there is no such feature.&lt;/P&gt;
&lt;P&gt;DAX is the only business logic language and it doesnt and shouldnt support system enviroment parameters&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 14:14:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/935686#M9769</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-02-17T14:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve server name in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/935688#M9770</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 14:16:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/935688#M9770</guid>
      <dc:creator>ahpitre2</dc:creator>
      <dc:date>2020-02-17T14:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve server name in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/935691#M9771</link>
      <description>&lt;P&gt;Hi, I don't think it's possible to get the server name from DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps you can&lt;/P&gt;&lt;P&gt;- Use relative URL:s? (skip the http://servername/ part)&lt;/P&gt;&lt;P&gt;- Add the server name to a settings table in the server and load it into the model using a localhost connection (if you have SQL running on the server / your machine).&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 14:18:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/935691#M9771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-17T14:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve server name in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/935693#M9772</link>
      <description>&lt;P&gt;Great idea. Unfortunately I can do this on my local computer, but not on the server (I don't have necessary permissions). Thanks for the input.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 14:19:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/935693#M9772</guid>
      <dc:creator>ahpitre2</dc:creator>
      <dc:date>2020-02-17T14:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve server name in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/2907184#M94895</link>
      <description>&lt;P&gt;How do you the the URL from the table and make it an active URL in PowerBI?&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 16:40:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-server-name-in-DAX/m-p/2907184#M94895</guid>
      <dc:creator>TDang</dc:creator>
      <dc:date>2022-11-15T16:40:10Z</dc:date>
    </item>
  </channel>
</rss>

