<?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 Filter with DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-with-DAX/m-p/1678576#M34406</link>
    <description>&lt;P&gt;Good morning all !&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I ask for your help because I have a problem in my Power BI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A "Master table" where I have 4 columns:&lt;UL&gt;&lt;LI&gt;Date of extraction&lt;/LI&gt;&lt;LI&gt;ABC code&lt;/LI&gt;&lt;LI&gt;MaterialCode&lt;/LI&gt;&lt;LI&gt;Forecast&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;my second table is called "DAD_Factory" and I have 5 columns:&lt;UL&gt;&lt;LI&gt;Date of extraction&lt;/LI&gt;&lt;LI&gt;MaterialCode&lt;/LI&gt;&lt;LI&gt;ADI Number&lt;/LI&gt;&lt;LI&gt;ReasonPV&lt;/LI&gt;&lt;LI&gt;Stock&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;What I want to do is create 3 columns in DAX (or a measure) which will display me&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the "ADI Number"&lt;/LI&gt;&lt;LI&gt;The "reasonPv"&lt;/LI&gt;&lt;LI&gt;The "Stock"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;which is in the column "DAD FACTORY"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do with this report is a kind of historical follow-up, that is to say that when I filter on the date of the extraction with a filter pane, I want that in my master Table I can have my "MaterialCode", "my" Forecast "with my 3 new columns that I would have created&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;P&gt;On January 1st, 2021 my "MaterialCode": 71673 had a forecast of 7K, a stock of 10k, it had 3 ADI Number "381/25624352"/ "385/25624352"/ "388/25624352" and the reason for these PVs was "human problem"/"Failure to respect the order"/ "late delivery".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if my request is feasible, but I would need your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to clarify something too:&lt;/P&gt;&lt;P&gt;A MaterialCode can have more than one ADI code and more than one PV.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to create a relation between the two tables with the "MaterialCode" as primary key (see below my relation that I used)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the problem is that when I want to filter by date code of the extraction, nothing filters correctly&lt;/P&gt;&lt;P&gt;I hope you can help me !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 20 Feb 2021 11:27:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-02-20T11:27:41Z</dc:date>
    <item>
      <title>Filter with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-with-DAX/m-p/1678576#M34406</link>
      <description>&lt;P&gt;Good morning all !&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I ask for your help because I have a problem in my Power BI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A "Master table" where I have 4 columns:&lt;UL&gt;&lt;LI&gt;Date of extraction&lt;/LI&gt;&lt;LI&gt;ABC code&lt;/LI&gt;&lt;LI&gt;MaterialCode&lt;/LI&gt;&lt;LI&gt;Forecast&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;my second table is called "DAD_Factory" and I have 5 columns:&lt;UL&gt;&lt;LI&gt;Date of extraction&lt;/LI&gt;&lt;LI&gt;MaterialCode&lt;/LI&gt;&lt;LI&gt;ADI Number&lt;/LI&gt;&lt;LI&gt;ReasonPV&lt;/LI&gt;&lt;LI&gt;Stock&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;What I want to do is create 3 columns in DAX (or a measure) which will display me&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the "ADI Number"&lt;/LI&gt;&lt;LI&gt;The "reasonPv"&lt;/LI&gt;&lt;LI&gt;The "Stock"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;which is in the column "DAD FACTORY"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do with this report is a kind of historical follow-up, that is to say that when I filter on the date of the extraction with a filter pane, I want that in my master Table I can have my "MaterialCode", "my" Forecast "with my 3 new columns that I would have created&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;P&gt;On January 1st, 2021 my "MaterialCode": 71673 had a forecast of 7K, a stock of 10k, it had 3 ADI Number "381/25624352"/ "385/25624352"/ "388/25624352" and the reason for these PVs was "human problem"/"Failure to respect the order"/ "late delivery".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if my request is feasible, but I would need your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to clarify something too:&lt;/P&gt;&lt;P&gt;A MaterialCode can have more than one ADI code and more than one PV.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to create a relation between the two tables with the "MaterialCode" as primary key (see below my relation that I used)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the problem is that when I want to filter by date code of the extraction, nothing filters correctly&lt;/P&gt;&lt;P&gt;I hope you can help me !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 11:27:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-with-DAX/m-p/1678576#M34406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-20T11:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Filter with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-with-DAX/m-p/1678992#M34425</link>
      <description>&lt;P&gt;Think about improving your data model. Right now you have two fact tables. You will want to add some dimension tables like the Material Dimension and Calendar Dimension etc.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 03:30:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-with-DAX/m-p/1678992#M34425</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-02-21T03:30:02Z</dc:date>
    </item>
  </channel>
</rss>

