<?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: Alternative to Lookupvalue to use in virtual tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Alternative-to-Lookupvalue-to-use-in-virtual-tables/m-p/3942212#M153263</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="236628" data-lia-user-login="AntrikshSharma" class="lia-mention lia-mention-user"&gt;AntrikshSharma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying!! The logic is that if the product gets reclassified, it always takes the classification of the latest period chosen.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we have Period 3 as Shirt. Then if the user chooses Period 3 and 2 to compare, the Category should be Shirt, as it is the last one the one that remains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the user picks Period 3 and 1, it would be Shirt because it's the same category, but if Period 2 and 1 are chosen, then it would be Clothes, as Period 2 is the last one there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this makes what I need a bit more clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!!&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2024 07:43:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-23T07:43:26Z</dc:date>
    <item>
      <title>Alternative to Lookupvalue to use in virtual tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Alternative-to-Lookupvalue-to-use-in-virtual-tables/m-p/3940031#M153189</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help creating a column inside a virtual table, so I cannot use a lookupvalue as a physical table is required...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This a dummy data to show what I need. This would be my Sales Table, where "Period" is not in date format, but text:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, in period 1, the Tshirt was classified as Shirt, but in the next period was reclassified as Clothes. This is making my future calculations look like they are 2 different products, while they are the same. I can create a summarize table without Category, but I need to be able to analyse that as well so I need to include it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could hard code a change, but each month some products get changed, and I cannot waste my time to look for them and change them. I'm trying now to add the column after the initial "ADDCOLUMNS( SUMMARIZE", but I cannot use lookupvalue to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result I'm looking for would be something like this, were if there is any discrepancy in the category, the one in Period 1 should be replaced with the category from Period 2 (the most recent one).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This way they would be treated as just 1 product to make further analysis like Actual - Outlook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This virtual table gets calculated according to the Periods that the user selects in the slicer, so I cannot create a table for this to change the category because depending on the periods, the result of the category might be different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I can create this column "Category", checking the product name and fetching the category from the Period 2?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!!&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 14:05:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Alternative-to-Lookupvalue-to-use-in-virtual-tables/m-p/3940031#M153189</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-22T14:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Lookupvalue to use in virtual tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Alternative-to-Lookupvalue-to-use-in-virtual-tables/m-p/3940418#M153207</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;What happens if in Period 3 T-Shirt is again categorized as Shirt what should be the logic for that row?&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 16:46:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Alternative-to-Lookupvalue-to-use-in-virtual-tables/m-p/3940418#M153207</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2024-05-22T16:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Lookupvalue to use in virtual tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Alternative-to-Lookupvalue-to-use-in-virtual-tables/m-p/3942212#M153263</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="236628" data-lia-user-login="AntrikshSharma" class="lia-mention lia-mention-user"&gt;AntrikshSharma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying!! The logic is that if the product gets reclassified, it always takes the classification of the latest period chosen.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we have Period 3 as Shirt. Then if the user chooses Period 3 and 2 to compare, the Category should be Shirt, as it is the last one the one that remains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the user picks Period 3 and 1, it would be Shirt because it's the same category, but if Period 2 and 1 are chosen, then it would be Clothes, as Period 2 is the last one there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this makes what I need a bit more clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!!&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 07:43:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Alternative-to-Lookupvalue-to-use-in-virtual-tables/m-p/3942212#M153263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-23T07:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Lookupvalue to use in virtual tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Alternative-to-Lookupvalue-to-use-in-virtual-tables/m-p/3949917#M153420</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Category Corrected = 
IF ( 
    ISINSCOPE ( 'Table'[Period] ),
    VAR MaxSelectedPeriod = 
        CALCULATE ( 
            MAX ( 'Table'[Period] ),
            ALLSELECTED ( 'Table' )
        )
    VAR MostRecentCategory = 
        CALCULATE ( 
            VALUES ( 'Table'[Category] ),
            'Table'[Period] = MaxSelectedPeriod,
            REMOVEFILTERS ( 'Table' )
        )
    RETURN MostRecentCategory
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2024 07:28:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Alternative-to-Lookupvalue-to-use-in-virtual-tables/m-p/3949917#M153420</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2024-05-26T07:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Lookupvalue to use in virtual tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Alternative-to-Lookupvalue-to-use-in-virtual-tables/m-p/3954241#M153503</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="236628" data-lia-user-login="AntrikshSharma" class="lia-mention lia-mention-user"&gt;AntrikshSharma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you share the pbix here to see it? I'm trying to adapt your code to add it to my virtual table but I'm having some issues. Maybe if I see it in the file I can adapt it better.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Million thanks for your help!!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 08:37:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Alternative-to-Lookupvalue-to-use-in-virtual-tables/m-p/3954241#M153503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-28T08:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Lookupvalue to use in virtual tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Alternative-to-Lookupvalue-to-use-in-virtual-tables/m-p/3954778#M153516</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;You can download from here:&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1e90MuQ8b316hgoBS-n8l9kTuHGNJUD6B/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1e90MuQ8b316hgoBS-n8l9kTuHGNJUD6B/view?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 10:53:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Alternative-to-Lookupvalue-to-use-in-virtual-tables/m-p/3954778#M153516</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2024-05-28T10:53:28Z</dc:date>
    </item>
  </channel>
</rss>

