<?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 Reversing DAX statement in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reversing-DAX-statement/m-p/1463283#M27643</link>
    <description>&lt;P&gt;Hi, can someone help?&lt;/P&gt;&lt;P&gt;I need this DAX calculation, but the other way around:&lt;BR /&gt;@ &lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Transitive-Closure/td-p/783828" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Transitive-Closure/td-p/783828&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Output &amp;gt; DAX &amp;gt; Input)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Thu, 29 Oct 2020 11:47:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-10-29T11:47:09Z</dc:date>
    <item>
      <title>Reversing DAX statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reversing-DAX-statement/m-p/1463283#M27643</link>
      <description>&lt;P&gt;Hi, can someone help?&lt;/P&gt;&lt;P&gt;I need this DAX calculation, but the other way around:&lt;BR /&gt;@ &lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Transitive-Closure/td-p/783828" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Transitive-Closure/td-p/783828&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Output &amp;gt; DAX &amp;gt; Input)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 11:47:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reversing-DAX-statement/m-p/1463283#M27643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-29T11:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reversing DAX statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reversing-DAX-statement/m-p/1463672#M27657</link>
      <description>What does it mean "other way round"? There is no 1-1 correspondence from a relation to its transitive closure, so you can't really do what you require.</description>
      <pubDate>Thu, 29 Oct 2020 14:37:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reversing-DAX-statement/m-p/1463672#M27657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-29T14:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reversing DAX statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reversing-DAX-statement/m-p/1464962#M27704</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;maybe this is what you want&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;here is the code&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Input = VAR t=
SELECTCOLUMNS (
    GENERATE (
        GENERATE (
            ADDCOLUMNS (
                Output,
                "@path", SUBSTITUTE ( Output[Destinations], ";", "|" ),
                "@n",
                    LEN ( Output[Destinations] )
                        - LEN ( SUBSTITUTE ( Output[Destinations], ";", "" ) ) + 1
            ),
            GENERATESERIES ( 1, [@n], 1 )
        ),
        ROW ( "To", PATHITEM ( [@path], [Value] ) )
    ),
    "From", [From],
    "To", [To]
)
RETURN 
FILTER(t,VAR fr=[From] VAR tt=[To] RETURN COUNTROWS(FILTER(t,[From]=tt||[To]=fr)))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 30 Oct 2020 04:25:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reversing-DAX-statement/m-p/1464962#M27704</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2020-10-30T04:25:21Z</dc:date>
    </item>
  </channel>
</rss>

