<?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 Using DAX to create custom URL in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DAX-to-create-custom-URL/m-p/1514143#M29441</link>
    <description>&lt;P&gt;Hello! I'm using&amp;nbsp; DAX measures to create custom URLs based on the visual the end-user is seeing.&amp;nbsp; I'm using a value from a static table as part of the measure - ('YEAR'[YEAR]), see below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I'm having is that sometimes the custom URL works. sometimes it doesn't.&amp;nbsp; Example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"&lt;A href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.oabis.state.pa.us%2FSGWS%2F&amp;amp;data=04%7C01%7C%7Cd1b49cda02424c865ce608d8908a36c1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637418270584905900%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=oPh1GCEds%2BQ26XIKdHYWw6fQffiXWL2aVSLzLxDOOkk%3D&amp;amp;reserved=0" target="_blank"&gt;http://www.oabis.state.pa.us/SGWS/&lt;/A&gt;"&amp;amp; SELECTEDVALUE('YEAR'[YEAR]) &amp;amp;"/"&amp;amp; SELECTEDVALUE('YEAR'[YEAR]) &amp;amp;"_SGWS_Dashboard_Charts.pdf#page=4" works, &lt;STRONG&gt;where&amp;nbsp; ('YEAR'[YEAR]) = 2021&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;but&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"&lt;A href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.oabis.state.pa.us%2FSGWS%2F&amp;amp;data=04%7C01%7C%7Cd1b49cda02424c865ce608d8908a36c1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637418270584895908%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=UKGECVGm4tUzXhxGQIwf%2FUsYtKt1rJCUwXUHYYLpk9E%3D&amp;amp;reserved=0" target="_blank"&gt;http://www.oabis.state.pa.us/SGWS/&lt;/A&gt;"&amp;amp; SELECTEDVALUE('YEAR'[YEAR]) &amp;amp;"/"&amp;amp; SELECTEDVALUE('YEAR'[YEAR]) &amp;amp;"_SGWS_Dashboard_Charts.pdf#page=5" doesn't work.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm at wit's end trying to figure this out.&amp;nbsp; I can hard code&amp;nbsp;SELECTEDVALUE('YEAR'[YEAR]) to 2021, but that means next year when this report comes out, I have to do the same things to the other URLs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am wondering if anyone else came across this issue and has a solution.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2020 15:30:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-24T15:30:46Z</dc:date>
    <item>
      <title>Using DAX to create custom URL</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DAX-to-create-custom-URL/m-p/1514143#M29441</link>
      <description>&lt;P&gt;Hello! I'm using&amp;nbsp; DAX measures to create custom URLs based on the visual the end-user is seeing.&amp;nbsp; I'm using a value from a static table as part of the measure - ('YEAR'[YEAR]), see below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I'm having is that sometimes the custom URL works. sometimes it doesn't.&amp;nbsp; Example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"&lt;A href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.oabis.state.pa.us%2FSGWS%2F&amp;amp;data=04%7C01%7C%7Cd1b49cda02424c865ce608d8908a36c1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637418270584905900%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=oPh1GCEds%2BQ26XIKdHYWw6fQffiXWL2aVSLzLxDOOkk%3D&amp;amp;reserved=0" target="_blank"&gt;http://www.oabis.state.pa.us/SGWS/&lt;/A&gt;"&amp;amp; SELECTEDVALUE('YEAR'[YEAR]) &amp;amp;"/"&amp;amp; SELECTEDVALUE('YEAR'[YEAR]) &amp;amp;"_SGWS_Dashboard_Charts.pdf#page=4" works, &lt;STRONG&gt;where&amp;nbsp; ('YEAR'[YEAR]) = 2021&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;but&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"&lt;A href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.oabis.state.pa.us%2FSGWS%2F&amp;amp;data=04%7C01%7C%7Cd1b49cda02424c865ce608d8908a36c1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637418270584895908%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=UKGECVGm4tUzXhxGQIwf%2FUsYtKt1rJCUwXUHYYLpk9E%3D&amp;amp;reserved=0" target="_blank"&gt;http://www.oabis.state.pa.us/SGWS/&lt;/A&gt;"&amp;amp; SELECTEDVALUE('YEAR'[YEAR]) &amp;amp;"/"&amp;amp; SELECTEDVALUE('YEAR'[YEAR]) &amp;amp;"_SGWS_Dashboard_Charts.pdf#page=5" doesn't work.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm at wit's end trying to figure this out.&amp;nbsp; I can hard code&amp;nbsp;SELECTEDVALUE('YEAR'[YEAR]) to 2021, but that means next year when this report comes out, I have to do the same things to the other URLs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am wondering if anyone else came across this issue and has a solution.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 15:30:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DAX-to-create-custom-URL/m-p/1514143#M29441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-24T15:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using DAX to create custom URL</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DAX-to-create-custom-URL/m-p/1514930#M29474</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Based on what I got. &lt;/P&gt;
&lt;P&gt;You can use selectedvalue only in a measure. Are creating a measure or column? Try as a measure.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 01:54:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DAX-to-create-custom-URL/m-p/1514930#M29474</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-25T01:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using DAX to create custom URL</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DAX-to-create-custom-URL/m-p/1516369#M29506</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;, sorry, should have specified.&amp;nbsp; It is a measure I'm using.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 12:53:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DAX-to-create-custom-URL/m-p/1516369#M29506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T12:53:06Z</dc:date>
    </item>
  </channel>
</rss>

