<?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 YoY Calculations and Summing filterd columns with blanked out data. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Calculations-and-Summing-filterd-columns-with-blanked-out/m-p/2807176#M88639</link>
    <description>&lt;P&gt;The Meause I am using is working well, but in 2 months where the previous year is missing 1 weeks Values and a current month is missing 1 weeks values.&amp;nbsp; When I view the YoY by month the calculation is incorrect.&amp;nbsp; Any help would be great.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I was able to get the values to show up correctly with IF, however they still dont sum correctly&lt;BR /&gt;Here is an example of the last year values with the IF statement.&lt;BR /&gt;measure =&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;BR /&gt;[Value] &amp;lt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;BR /&gt;&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;(Table[Value]), &lt;/SPAN&gt;&lt;SPAN&gt;SAMEPERIODLASTYEAR&lt;/SPAN&gt;&lt;SPAN&gt;(CalendarTable[Date])),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;The total of the 2nd column should be 97,525 not 130450&lt;/P&gt;&lt;P&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>Thu, 29 Sep 2022 19:17:49 GMT</pubDate>
    <dc:creator>Walt</dc:creator>
    <dc:date>2022-09-29T19:17:49Z</dc:date>
    <item>
      <title>YoY Calculations and Summing filterd columns with blanked out data.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Calculations-and-Summing-filterd-columns-with-blanked-out/m-p/2807176#M88639</link>
      <description>&lt;P&gt;The Meause I am using is working well, but in 2 months where the previous year is missing 1 weeks Values and a current month is missing 1 weeks values.&amp;nbsp; When I view the YoY by month the calculation is incorrect.&amp;nbsp; Any help would be great.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I was able to get the values to show up correctly with IF, however they still dont sum correctly&lt;BR /&gt;Here is an example of the last year values with the IF statement.&lt;BR /&gt;measure =&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;BR /&gt;[Value] &amp;lt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;BR /&gt;&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;(Table[Value]), &lt;/SPAN&gt;&lt;SPAN&gt;SAMEPERIODLASTYEAR&lt;/SPAN&gt;&lt;SPAN&gt;(CalendarTable[Date])),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;The total of the 2nd column should be 97,525 not 130450&lt;/P&gt;&lt;P&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>Thu, 29 Sep 2022 19:17:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Calculations-and-Summing-filterd-columns-with-blanked-out/m-p/2807176#M88639</guid>
      <dc:creator>Walt</dc:creator>
      <dc:date>2022-09-29T19:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: YoY Calculations and Summing filterd columns with blanked out data.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Calculations-and-Summing-filterd-columns-with-blanked-out/m-p/2807611#M88688</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="424441" data-lia-user-login="Walt" class="lia-mention lia-mention-user"&gt;Walt&lt;/a&gt; , Simply use this , do not handle blank &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CALCULATE(SUM(Table[Value]), SAMEPERIODLASTYEAR(CalendarTable[Date]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also make sure 6 reasons are covered&lt;/P&gt;
&lt;P&gt;Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :&lt;A href="https://youtu.be/OBf0rjpp5Hw" target="_blank"&gt;https://youtu.be/OBf0rjpp5Hw&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4" target="_blank"&gt;https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4&lt;/A&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For not matching grand total refer&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=ufHOOLdi_jk" target="_blank"&gt;https://www.youtube.com/watch?v=ufHOOLdi_jk&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 02:06:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Calculations-and-Summing-filterd-columns-with-blanked-out/m-p/2807611#M88688</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-09-30T02:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: YoY Calculations and Summing filterd columns with blanked out data.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Calculations-and-Summing-filterd-columns-with-blanked-out/m-p/2807631#M88692</link>
      <description>&lt;P&gt;Thank you for your response.&amp;nbsp; However the measure you responded with will sum the entire column for the month.&amp;nbsp; please see the examples for an explanation of what I'm trying to accomplish.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 02:19:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Calculations-and-Summing-filterd-columns-with-blanked-out/m-p/2807631#M88692</guid>
      <dc:creator>Walt</dc:creator>
      <dc:date>2022-09-30T02:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: YoY Calculations and Summing filterd columns with blanked out data.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Calculations-and-Summing-filterd-columns-with-blanked-out/m-p/2807746#M88701</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/393568" target="_blank"&gt;@SewardExelon&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can create&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;another new measure&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as below and put this new measure to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;replace&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;the original measure&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;onto the table visual as below screenshot...&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; The groupby fields are from the fields marked with &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;red lines&lt;/FONT&gt;&lt;/STRONG&gt; in the screenshot below...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New mesaure =
SUMX (
    GROUPBY (
        CalendarTable,
        CalendarTable[YearQuarter],
        CalendarTable[Month],
        CalendarTable[Week]
    ),
    [your measure name]
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In addition, you can refer the following links to try to solve your problem...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRii_6qkLNh8&amp;amp;data=05%7C01%7Cv-yiruan%40microsoft.com%7Cc07340e98cdc4c049cc708da85ad0a16%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637969275518231092%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=sllOPElQkaqNE9rZJ%2BSoa5CwiBe%2B5dKX82yZXHC1LYg%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKa7Ds4EAjNQ&amp;amp;data=05%7C01%7Cv-yiruan%40microsoft.com%7Cc07340e98cdc4c049cc708da85ad0a16%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637969275518231092%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=nMcFp5Gp2TDaRdU7BMHy7Td528EaRtr1IrqN%2BOdQboA%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;Dax for Power BI: Fixing Incorrect Measure Totals&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your table&amp;nbsp;(&lt;STRONG&gt;&lt;EM&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/EM&gt;&lt;/STRONG&gt;) with&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;pbix file. You can refer the following link to upload the file to the community. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=05%7C01%7Cv-yiruan%40microsoft.com%7C52042a9abdcb4f87992108da9226a782%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637982991998684943%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=UtrFZ3zCvCcIHUi%2FVD3ptir0IqV85%2BozKiH9HbdDJHc%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 03:27:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Calculations-and-Summing-filterd-columns-with-blanked-out/m-p/2807746#M88701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-30T03:27:31Z</dc:date>
    </item>
  </channel>
</rss>

