<?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: How do I apply TREATAS or create a virtual relationship? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-apply-TREATAS-or-create-a-virtual-relationship/m-p/1958236#M42777</link>
    <description>&lt;P&gt;If you're trying to match the Rating in that table, why not something much simpler like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Col2 = 
IF (
    HASONEVALUE ( Main[ProviderName] ),
    VAR Rating = [Rating]
    RETURN
        CALCULATE (
            SELECTEDVALUE ( Index[IndexPoint] ),
            Index[IndexRating] = Rating
        )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or even&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Col2 =
LOOKUPVALUE (
    Index[IndexPoint],
    Index[ProcessingDate], SELECTEDVALUE ( 'Date Bridge'[ProcessingDate] ),
    Index[IndexRating], [Rating]
)&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 14 Jul 2021 20:04:48 GMT</pubDate>
    <dc:creator>AlexisOlson</dc:creator>
    <dc:date>2021-07-14T20:04:48Z</dc:date>
    <item>
      <title>How do I apply TREATAS or create a virtual relationship?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-apply-TREATAS-or-create-a-virtual-relationship/m-p/1958182#M42771</link>
      <description>&lt;P&gt;I am trying to apply virtual relationship using TREATAS with the code that I have or modify current code to make it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sharing my &lt;A href="https://drive.google.com/file/d/1ZFjKyo2wTQdp3S8ufmWoptyCNucdtajh/view?usp=sharing" target="_self"&gt;Pbix file here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to fix measure called "&lt;STRONG&gt;Col2&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;Here is current code:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Expected outcome for Col2 should be&amp;nbsp; 27.333 for Royal T and 79.333 for Royal P (for May 2021).&lt;/P&gt;&lt;P&gt;But, because there is no relationship, outcome just got all mixed up from this table called "Index".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;table "&lt;STRONG&gt;Index&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected output for May 2021:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 19:24:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-apply-TREATAS-or-create-a-virtual-relationship/m-p/1958182#M42771</guid>
      <dc:creator>JustinDoh1</dc:creator>
      <dc:date>2021-07-14T19:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I apply TREATAS or create a virtual relationship?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-apply-TREATAS-or-create-a-virtual-relationship/m-p/1958236#M42777</link>
      <description>&lt;P&gt;If you're trying to match the Rating in that table, why not something much simpler like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Col2 = 
IF (
    HASONEVALUE ( Main[ProviderName] ),
    VAR Rating = [Rating]
    RETURN
        CALCULATE (
            SELECTEDVALUE ( Index[IndexPoint] ),
            Index[IndexRating] = Rating
        )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or even&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Col2 =
LOOKUPVALUE (
    Index[IndexPoint],
    Index[ProcessingDate], SELECTEDVALUE ( 'Date Bridge'[ProcessingDate] ),
    Index[IndexRating], [Rating]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 14 Jul 2021 20:04:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-apply-TREATAS-or-create-a-virtual-relationship/m-p/1958236#M42777</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-07-14T20:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I apply TREATAS or create a virtual relationship?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-apply-TREATAS-or-create-a-virtual-relationship/m-p/1958328#M42782</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;It is amazing how you come up with the solution. I appreciated it so much for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 21:16:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-apply-TREATAS-or-create-a-virtual-relationship/m-p/1958328#M42782</guid>
      <dc:creator>JustinDoh1</dc:creator>
      <dc:date>2021-07-14T21:16:54Z</dc:date>
    </item>
  </channel>
</rss>

