<?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 Billed All Months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3127586#M111152</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a requirement to check if a Store has Billed Consecutively All months for the last 12 Months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data in the below format.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;If you see the above , i have 2 stores data in the Same table "sales" .Store Code SC1 &amp;amp; SC2. If you se StoreCode SC1 its is belled all months .i.e. last 12 Months from the filterdate but for StorceCode SC2 it has not been billed in first couple of Months, highlighted in grey above for SC2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I select Dec 2022, then need to check if the entries are there for all the past 12 months. If all entries in past 12 months then SelectColum StoreCode in my DAX&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Any help would be great. Need the DAX for the same.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Pritam Shetty&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 11:59:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-13T11:59:16Z</dc:date>
    <item>
      <title>Billed All Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3127586#M111152</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a requirement to check if a Store has Billed Consecutively All months for the last 12 Months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data in the below format.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;If you see the above , i have 2 stores data in the Same table "sales" .Store Code SC1 &amp;amp; SC2. If you se StoreCode SC1 its is belled all months .i.e. last 12 Months from the filterdate but for StorceCode SC2 it has not been billed in first couple of Months, highlighted in grey above for SC2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I select Dec 2022, then need to check if the entries are there for all the past 12 months. If all entries in past 12 months then SelectColum StoreCode in my DAX&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Any help would be great. Need the DAX for the same.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Pritam Shetty&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 11:59:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3127586#M111152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-13T11:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Billed All Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3127628#M111156</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 10:29:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3127628#M111156</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-03-13T10:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Billed All Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3127703#M111161</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;i try to find a solution. See this PBI File&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AgPiQyuY6LHqgQCK2z-YBAGBHp2S?e=a0JmpS" target="_blank"&gt;Billed All Months.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Please check the PBI File. There has to be no connection between both tables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The measure:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; _selectdate = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('calendar'[Date])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; _tb = &lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;('calendar','calendar'[Date],&lt;/SPAN&gt;&lt;SPAN&gt;"_26monthpriv"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;dateadd&lt;/SPAN&gt;&lt;SPAN&gt;('calendar'[Date],-&lt;/SPAN&gt;&lt;SPAN&gt;26&lt;/SPAN&gt;&lt;SPAN&gt;,MONTH))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(sale[Sale]),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(sale,sale[BillDate]&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;maxx&lt;/SPAN&gt;&lt;SPAN&gt;(_tb,[_26monthpriv]) &amp;amp;&amp;amp; sale[BillDate]&amp;lt;=_selectdate))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 10:56:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3127703#M111161</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-03-13T10:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Billed All Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3127876#M111180</link>
      <description>&lt;P&gt;Thanks!! for help, I have edited my content above. I don't need sales for the last 12 months, I need to check if the particular store has made an entry each and every month for the last 12 months&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 12:00:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3127876#M111180</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-13T12:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Billed All Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3127877#M111181</link>
      <description>&lt;P&gt;Edited, hope this time its better&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 12:01:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3127877#M111181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-13T12:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Billed All Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3128775#M111228</link>
      <description>&lt;P&gt;I do not understand the logic:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) if one store has datas for all month, choose is store.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) what if both has data for all month?&lt;/P&gt;&lt;P&gt;3) no store has data for all month?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) is clear, but 2) and 3)?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 17:30:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3128775#M111228</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-03-13T17:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Billed All Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3130140#M111327</link>
      <description>&lt;P&gt;Please find my answers inline&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2) what if both has data for all month? PS: Then Show both the Stores. In brief i want to show Stores that have billed all months.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3) no store has data for all month?&amp;nbsp; PS: then i donot show that Stores in the report.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 08:23:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3130140#M111327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-14T08:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Billed All Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3130162#M111330</link>
      <description>&lt;P&gt;Can you please confirm that only this sales table (no relationship to other tables) is involved with the three columns (YYYMMDD, StoreCode and Billno.) ? I will try to build a PBI for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 08:28:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3130162#M111330</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-03-14T08:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Billed All Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3130429#M111356</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I build a new PBI File. Perhaps i make it to complicated.&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AgPiQyuY6LHqgQEKSgC3bqxDQUAm?e=owizfi" target="_blank"&gt;Billed All Months Rev2.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I create a separate calendarslicer (with the endofmonth) and a store dim table.&lt;/P&gt;&lt;P&gt;The main part is this measure:&lt;/P&gt;&lt;P&gt;I make it dynamic that you can choose with&amp;nbsp;&lt;SPAN&gt;_lookupmonth how long you want to look back.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I build a table with all end of month dates and do than a crossjoin with the store table to get a table of all stores and end of month dates. Than I check for every billdate (end of month) and store if there was a sale and count it.&lt;BR /&gt;Later you can show this measure with the store table in one matrix. You can use the measure also as a filter if you want.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;new = &lt;/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UMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;store&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;store&lt;/SPAN&gt;&lt;SPAN&gt;[store]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"_countofmonthwithoutsale"&lt;/SPAN&gt;&lt;SPAN&gt;,ABS(_lookupmonth)-&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_tablesale&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[_Count]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_tablesale&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;_store&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;store&lt;/SPAN&gt;&lt;SPAN&gt;[store]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; &lt;SPAN&gt;maxx&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_nosale&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[_countofmonthwithoutsale]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Mar 2023 10:26:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3130429#M111356</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-03-14T10:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Billed All Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3148918#M112750</link>
      <description>&lt;P&gt;Thanks!! implementing it and trying to test it. Keep you posted.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 06:05:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Billed-All-Months/m-p/3148918#M112750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-23T06:05:44Z</dc:date>
    </item>
  </channel>
</rss>

