<?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: Measure formula problem in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3996098#M155255</link>
    <description>&lt;P&gt;Sorry for sounding rude. I will try your suggestions and come back with more updates. Thank you for your reply. &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;</description>
    <pubDate>Mon, 17 Jun 2024 12:19:18 GMT</pubDate>
    <dc:creator>Rakshhit_Sharma</dc:creator>
    <dc:date>2024-06-17T12:19:18Z</dc:date>
    <item>
      <title>Measure formula problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3994791#M155141</link>
      <description>&lt;P&gt;I am writing some measures to calculate,let's say, sum of sales for past n months [n is 3,6,12,24,36]. All will be shown in cards.&lt;/P&gt;&lt;P&gt;I have data up until feb 2024 , starting from jan 2019&lt;/P&gt;&lt;P&gt;The normal measure for sum is&lt;/P&gt;&lt;P&gt;Sale_Sum = sum(tablename.columnname)&amp;nbsp;&lt;/P&gt;&lt;P&gt;This one is working fine.&lt;/P&gt;&lt;P&gt;When i tried to make specific measure , something like this:&lt;/P&gt;&lt;P&gt;Sale_Sum_3_months = Calculate(Sale_Sum, filter(tablename,datecolumn &amp;lt;= max(table.datecolumn) &amp;amp;&amp;amp; datecolumn &amp;gt;= max(table.datecolumn)-90)).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again this is working fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Slicers made of other columns working perfectly fine with this card. But problemcomes with year slicer. In all 5 cases[ 3,6,9,12,36 months ], when i select 2024, it shows data only for jan and feb 24, whereas technically it should sum of 3 months[ dec 23, jan 24, feb 24]. Also for 24, 36 month cases when 1 year is selected, lets say 2023, then only 2023 data is shown instead of showing 2023-22 data for 24 months and 2023-22-21 for 36 months. I tried using "all(tablename)" or "all(tablename.datecolumn" function in first part of filter where tablename is present , but then rest of slicers made from other columns will not work. Only year slicer will work. If i use removefilters(tablename) instead of tablename in filter column, then other slicers will work , but date colum or year slicer will not. Any suggesstions what else can I&amp;nbsp; try. I will try my best to give fast replies for solving this problem better.&lt;/P&gt;&lt;P&gt;It looks like date column and rest of column slicers working in different directions . One does not work with other. Any suggestion will be helpful&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 11:35:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3994791#M155141</guid>
      <dc:creator>Rakshhit_Sharma</dc:creator>
      <dc:date>2024-06-16T11:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Measure formula problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3994971#M155156</link>
      <description>&lt;P&gt;Based on your description, it sounds like you have a single table. You should create a star schema. Here are some articles I wrote on the topic.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://exceleratorbi.com.au/the-optimal-shape-for-power-pivot-data/" target="_blank"&gt;https://exceleratorbi.com.au/the-optimal-shape-for-power-pivot-data/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://exceleratorbi.com.au/dax-time-intelligence-beginners/" target="_blank"&gt;https://exceleratorbi.com.au/dax-time-intelligence-beginners/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 22:53:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3994971#M155156</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2024-06-16T22:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Measure formula problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3995588#M155196</link>
      <description>&lt;P&gt;That case is not possible. I am doing internship in a comapny. I have to manage this data in its current way.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 08:09:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3995588#M155196</guid>
      <dc:creator>Rakshhit_Sharma</dc:creator>
      <dc:date>2024-06-17T08:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Measure formula problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3995697#M155202</link>
      <description>&lt;P&gt;Then as an intern the first thing you learn and do today is to push back on bad data model and make them adapt the star schema.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 09:03:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3995697#M155202</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2024-06-17T09:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Measure formula problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3995709#M155203</link>
      <description>&lt;P&gt;You do not need to ask for help on forums if you already know the correct answer. &amp;nbsp;🤷‍&lt;span class="lia-unicode-emoji" title=":male_sign:"&gt;♂️&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 09:06:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3995709#M155203</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2024-06-17T09:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Measure formula problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3995807#M155223</link>
      <description>&lt;P&gt;I have come here, because i do not know the solution. I am stuck at a junction where one type of filter will allow one set of slicers to work and other will allow different set. I am trying to find middle ground between those 2 filters . The community has always helped me in tough times. Thanks for cooperation&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 09:50:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3995807#M155223</guid>
      <dc:creator>Rakshhit_Sharma</dc:creator>
      <dc:date>2024-06-17T09:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Measure formula problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3996090#M155254</link>
      <description>&lt;P&gt;He tried to help you, reading theory is paramount in DAX/PBI. At minimum you need to have 2 separate tables (Sales and dates) here then only DAX will work otherwise DAX has a concept of "auto exists" it won't let your code return what you want unless you switch to star schema.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even after that you would need a disconnected dates table because if you filter 2024 you can't just return dates of 2023, so you need a slicer that has year column from disconnected dates table that doesn't filter the visual directly, instead it is filtered based on the DAX code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are 2 example of that disconnected dates table:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-6th-month-max-date-sales/m-p/3981439#M154386" target="_blank" rel="noopener"&gt;https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-6th-month-max-date-sales/m-p/3981439#M154386&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(select 2017 &amp;amp; 2018 from filters pane and then select any month from first quarter of 2018)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=A0h_0kf-0oI&amp;amp;ab_channel=AntrikshSharma" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=A0h_0kf-0oI&amp;amp;ab_channel=AntrikshSharma&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 12:16:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3996090#M155254</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2024-06-17T12:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Measure formula problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3996098#M155255</link>
      <description>&lt;P&gt;Sorry for sounding rude. I will try your suggestions and come back with more updates. Thank you for your reply. &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;</description>
      <pubDate>Mon, 17 Jun 2024 12:19:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/3996098#M155255</guid>
      <dc:creator>Rakshhit_Sharma</dc:creator>
      <dc:date>2024-06-17T12:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Measure formula problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/4000331#M155802</link>
      <description>&lt;P&gt;Hi &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;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="217" data-lia-user-login="MattAllington" class="lia-mention lia-mention-user"&gt;MattAllington&lt;/a&gt;&amp;nbsp;, Come here to tell u guys that the problem is solved. Congratulations. The idea of making a new dimension date table from main date table worked well. Thanks for your ideas. Hope to again meet you guys with some new query. Thanks for your guidance, once again&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 14:27:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-formula-problem/m-p/4000331#M155802</guid>
      <dc:creator>Rakshhit_Sharma</dc:creator>
      <dc:date>2024-06-19T14:27:45Z</dc:date>
    </item>
  </channel>
</rss>

