<?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 Proper Filter Plot for Index in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Proper-Filter-Plot-for-Index/m-p/4034270#M159777</link>
    <description>&lt;P&gt;HI!&lt;BR /&gt;I want to calculate an index in Power BI. I have this measure: Index_EUR_GALLON = DIVIDE( 'Fixed Formulas &amp;amp; Ingredient &amp;amp; Price'[Product_Price_EUR_GALLON], CALCULATE( 'Fixed Formulas &amp;amp; Ingredient &amp;amp; Price'[Product_Price_EUR_GALLON], FILTER( ALL('Fixed Formulas &amp;amp; Ingredient &amp;amp; Price'[Date]), 'Fixed Formulas &amp;amp; Ingredient &amp;amp; Price'[Date] = SELECTEDVALUE('Calendar'[MonthlyDate]) )) where&lt;/P&gt;&lt;P&gt;Product_Price_EUR_GALLON = SUMX( 'Fixed Formulas &amp;amp; Ingredient &amp;amp; Price','Fixed Formulas &amp;amp; Ingredient &amp;amp; Price'[LFA_Ingredient.Mass_Rate]*'Fixed Formulas &amp;amp; Ingredient &amp;amp; Price'[Price_EUR_GALLON])&lt;/P&gt;&lt;P&gt;Index is calculated properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I want to plot the results I have line plot where on x axis I have 'Fixed Formulas &amp;amp; Ingredient &amp;amp; Price'[Date] on y I have calcuated Index. Table 'Fixed Formulas &amp;amp; Ingredient &amp;amp; Price'[Date] contains also column FormulaStartDate which informs us which formula was applied for which date.&lt;/P&gt;&lt;P&gt;Example. Product: [a,a,a,a,a,a,a,a,a], Date: [2020-01-01,2020-02-01,2020-03-01,2020-04-01,2020-05-01,2020-06-01,2020-07-01,2020-08-01,2020-09-01], formula: [1,1,1,1,1,3,3,3,3] FormulaStartDate:[2019-11-01,2019-11-01,2019-11-01,2019-11-01,2019-11-01, 2020-06-01,,2020-06-01,2020-06-01,2020-06-01]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two slicers one to select Baseline Date for Index, second to be able to see on the plot only values for one formula.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;When my baseline date is Jan2020 (I have seected based on ('Calendar'[MonthlyDate]) and when I filter FormulaStartDate using slicer to see on the plot dates assigned for FormulaStartDate 2020-06-01, nothing shows up.&lt;BR /&gt;I guess that's because we filtered out our baseline date.&lt;BR /&gt;How to solve this issue?&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2024 09:38:03 GMT</pubDate>
    <dc:creator>Aproksymacja</dc:creator>
    <dc:date>2024-07-10T09:38:03Z</dc:date>
    <item>
      <title>Proper Filter Plot for Index</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Proper-Filter-Plot-for-Index/m-p/4034270#M159777</link>
      <description>&lt;P&gt;HI!&lt;BR /&gt;I want to calculate an index in Power BI. I have this measure: Index_EUR_GALLON = DIVIDE( 'Fixed Formulas &amp;amp; Ingredient &amp;amp; Price'[Product_Price_EUR_GALLON], CALCULATE( 'Fixed Formulas &amp;amp; Ingredient &amp;amp; Price'[Product_Price_EUR_GALLON], FILTER( ALL('Fixed Formulas &amp;amp; Ingredient &amp;amp; Price'[Date]), 'Fixed Formulas &amp;amp; Ingredient &amp;amp; Price'[Date] = SELECTEDVALUE('Calendar'[MonthlyDate]) )) where&lt;/P&gt;&lt;P&gt;Product_Price_EUR_GALLON = SUMX( 'Fixed Formulas &amp;amp; Ingredient &amp;amp; Price','Fixed Formulas &amp;amp; Ingredient &amp;amp; Price'[LFA_Ingredient.Mass_Rate]*'Fixed Formulas &amp;amp; Ingredient &amp;amp; Price'[Price_EUR_GALLON])&lt;/P&gt;&lt;P&gt;Index is calculated properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I want to plot the results I have line plot where on x axis I have 'Fixed Formulas &amp;amp; Ingredient &amp;amp; Price'[Date] on y I have calcuated Index. Table 'Fixed Formulas &amp;amp; Ingredient &amp;amp; Price'[Date] contains also column FormulaStartDate which informs us which formula was applied for which date.&lt;/P&gt;&lt;P&gt;Example. Product: [a,a,a,a,a,a,a,a,a], Date: [2020-01-01,2020-02-01,2020-03-01,2020-04-01,2020-05-01,2020-06-01,2020-07-01,2020-08-01,2020-09-01], formula: [1,1,1,1,1,3,3,3,3] FormulaStartDate:[2019-11-01,2019-11-01,2019-11-01,2019-11-01,2019-11-01, 2020-06-01,,2020-06-01,2020-06-01,2020-06-01]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two slicers one to select Baseline Date for Index, second to be able to see on the plot only values for one formula.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;When my baseline date is Jan2020 (I have seected based on ('Calendar'[MonthlyDate]) and when I filter FormulaStartDate using slicer to see on the plot dates assigned for FormulaStartDate 2020-06-01, nothing shows up.&lt;BR /&gt;I guess that's because we filtered out our baseline date.&lt;BR /&gt;How to solve this issue?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 09:38:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Proper-Filter-Plot-for-Index/m-p/4034270#M159777</guid>
      <dc:creator>Aproksymacja</dc:creator>
      <dc:date>2024-07-10T09:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proper Filter Plot for Index</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Proper-Filter-Plot-for-Index/m-p/4034462#M159778</link>
      <description>&lt;P&gt;This reply is informational. Please follow the decorum of the Community Forum when asking a question. &lt;BR /&gt;&lt;BR /&gt;Please share your work-in-progress Power BI Desktop file (with sensitive information removed) and any source files in Excel format that fully address your issue or question in a usable format (not as a screenshot). You can upload these files to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then provide the file's URL.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 10:42:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Proper-Filter-Plot-for-Index/m-p/4034462#M159778</guid>
      <dc:creator>foodd</dc:creator>
      <dc:date>2024-07-10T10:42:24Z</dc:date>
    </item>
  </channel>
</rss>

