<?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 Check Pricelist to another pricelist on item in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-Pricelist-to-another-pricelist-on-item/m-p/4066984#M161449</link>
    <description>&lt;P&gt;I have a table with itemnumbers and there prices. Only there are multiple pricelists. In below PowerBI file there is an example for 6 of those pricelists on itemnumber level. I want to check 1 pricelist to another pricelist and give a percentage difference.&lt;/P&gt;&lt;P&gt;&lt;A title="TestPrices" href="https://kijlstrabestratingnl-my.sharepoint.com/:u:/g/personal/s_vandenhil_kijlstra-bestrating_nl/EW_VSGB7tQdMvaYI1liYW2QBkGCDS5y3xQur-NmRjiuDKg?e=Ham1YH" target="_blank" rel="noopener"&gt;TestPrices&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made 2 distinct tables to use in a filter visual. And made 2 DAX formulas to create a price for both filter tables. But the DAX formulas now also filter on both filter visuals. But what I want to achieve is that if I use filter 1, the column PriceDim1 changes and PriceDim2 will be zero. And if I use filter 2, PriceDim2 changes and PriceDim1 is zero. So that I can see the differences between 2 pricelists. And the next thing would be nice is to calculate this difference in absolute and percentages amounts, in an extra column.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2024 12:28:00 GMT</pubDate>
    <dc:creator>SvenvandenHil</dc:creator>
    <dc:date>2024-07-29T12:28:00Z</dc:date>
    <item>
      <title>Check Pricelist to another pricelist on item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-Pricelist-to-another-pricelist-on-item/m-p/4066984#M161449</link>
      <description>&lt;P&gt;I have a table with itemnumbers and there prices. Only there are multiple pricelists. In below PowerBI file there is an example for 6 of those pricelists on itemnumber level. I want to check 1 pricelist to another pricelist and give a percentage difference.&lt;/P&gt;&lt;P&gt;&lt;A title="TestPrices" href="https://kijlstrabestratingnl-my.sharepoint.com/:u:/g/personal/s_vandenhil_kijlstra-bestrating_nl/EW_VSGB7tQdMvaYI1liYW2QBkGCDS5y3xQur-NmRjiuDKg?e=Ham1YH" target="_blank" rel="noopener"&gt;TestPrices&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made 2 distinct tables to use in a filter visual. And made 2 DAX formulas to create a price for both filter tables. But the DAX formulas now also filter on both filter visuals. But what I want to achieve is that if I use filter 1, the column PriceDim1 changes and PriceDim2 will be zero. And if I use filter 2, PriceDim2 changes and PriceDim1 is zero. So that I can see the differences between 2 pricelists. And the next thing would be nice is to calculate this difference in absolute and percentages amounts, in an extra column.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 12:28:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-Pricelist-to-another-pricelist-on-item/m-p/4066984#M161449</guid>
      <dc:creator>SvenvandenHil</dc:creator>
      <dc:date>2024-07-29T12:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Check Pricelist to another pricelist on item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-Pricelist-to-another-pricelist-on-item/m-p/4067210#M161459</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="766425" data-lia-user-login="SvenvandenHil" class="lia-mention lia-mention-user"&gt;SvenvandenHil&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given how filtering context works in Power and the current relationship setup you have in the model it isn't possible to build what you are looking for.&lt;/P&gt;&lt;P&gt;But Power BI has a DAX function that allows you to filter (or relate) a table without using relationships through the TREATAS function.&lt;/P&gt;&lt;P&gt;You would need to break the relationships you built and add in TRETAS to the DAX measures you created. There will also be a restriction in the PriceCustomerGroups you filter forcing you to always have one selected.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made the changes in your file and you can find the updated version in the bellow link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/c/fc0895d5cb63339a/EegRzWFEXUlKnUboVRrln78BHGKtl2rJMLQRmfmPvxtksg?e=8P9uXk" target="_self"&gt;20240729 TestPrices Alan Fredes&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Alan Fredes&lt;/P&gt;&lt;P&gt;Did I answer your question? Mark my post as a solution!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 14:00:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-Pricelist-to-another-pricelist-on-item/m-p/4067210#M161459</guid>
      <dc:creator>AlanFredes</dc:creator>
      <dc:date>2024-07-29T14:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Check Pricelist to another pricelist on item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-Pricelist-to-another-pricelist-on-item/m-p/4067245#M161460</link>
      <description>&lt;P&gt;Hi Alan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, worked like a charm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;BR /&gt;&lt;BR /&gt;Sven&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 14:19:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-Pricelist-to-another-pricelist-on-item/m-p/4067245#M161460</guid>
      <dc:creator>SvenvandenHil</dc:creator>
      <dc:date>2024-07-29T14:19:13Z</dc:date>
    </item>
  </channel>
</rss>

