<?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: DAX: How to concatenate strings in CALCULATE and persist the filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-How-to-concatenate-strings-in-CALCULATE-and-persist-the/m-p/3536844#M135906</link>
    <description>&lt;P&gt;try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;_render_asLink = CALCULATE(
  IF(
    MAX(DSN_USERS_VW[PRINCIPAL_TYPE]) = "Group", "htt..portal.azure.com/../groupId/"&amp;amp; MAX(DSN_USERS_VW[IDENTIFIER]), BLANK()
    ), 
  KEEPFILTERS(DSN_USERS_VW)
)&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 16 Nov 2023 10:22:07 GMT</pubDate>
    <dc:creator>Rupak_bi</dc:creator>
    <dc:date>2023-11-16T10:22:07Z</dc:date>
    <item>
      <title>DAX: How to concatenate strings in CALCULATE and persist the filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-How-to-concatenate-strings-in-CALCULATE-and-persist-the/m-p/3536369#M135892</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I know I can concatenate values in PowerQuery, but out of curiosity, I wanted to do in the DAX on the runtime. Seems like I'm unable to do it effectively along with constantly losing the context.&lt;BR /&gt;&lt;BR /&gt;table:&amp;nbsp;&lt;STRONG&gt;DSN_USERS_VW&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;DSN_ID&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;USER_GROUP&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;IDENTIFIER&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;PRINCIPAL_TYPE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;APP-PBI-DSN-GROUP_A&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;id-of-the group&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;group&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;marcello.piatti@...com&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;user&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;anna.marina@...com&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;user&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I'm trying to build a link to the portal.azure.com to which see the members of the group if the PRINCIPAL_TYPE is&amp;nbsp;&lt;STRONG&gt;group&lt;/STRONG&gt;, if it's user, return blank.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&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;LI-CODE lang="markup"&gt;_render_asLink = CALCULATE(
  IF(
    MAX(DSN_USERS_VW[PRINCIPAL_TYPE]) = "Group", CONCATENATE("htt..portal.azure.com/../groupId/", MAX(DSN_USERS_VW[IDENTIFIER])), BLANK()
    ), 
  KEEPFILTERS(DSN_USERS_VW)
)&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;&lt;BR /&gt;I seriously don't like having to use the aggregation but seem like I have it. Is this the best way to do it?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When I say it ignores the context, I have another table&amp;nbsp;&lt;STRONG&gt;DSN_VW&amp;nbsp;&lt;/STRONG&gt;and the table visual using the data. normally, if I don't have the _render_asLink measunre in the other visual, the DSN_VW filters DSN_USERS_VW nicely, however, with the measure in the latter it always returns all of them. I think I might be having the context wrong there...&lt;BR /&gt;&lt;BR /&gt;Thanks for all your help!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 06:24:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-How-to-concatenate-strings-in-CALCULATE-and-persist-the/m-p/3536369#M135892</guid>
      <dc:creator>pacifist</dc:creator>
      <dc:date>2023-11-16T06:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX: How to concatenate strings in CALCULATE and persist the filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-How-to-concatenate-strings-in-CALCULATE-and-persist-the/m-p/3536844#M135906</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;_render_asLink = CALCULATE(
  IF(
    MAX(DSN_USERS_VW[PRINCIPAL_TYPE]) = "Group", "htt..portal.azure.com/../groupId/"&amp;amp; MAX(DSN_USERS_VW[IDENTIFIER]), BLANK()
    ), 
  KEEPFILTERS(DSN_USERS_VW)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Nov 2023 10:22:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-How-to-concatenate-strings-in-CALCULATE-and-persist-the/m-p/3536844#M135906</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2023-11-16T10:22:07Z</dc:date>
    </item>
  </channel>
</rss>

