<?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 YTD Actual vs YTD Target from tables with different granularity in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Actual-vs-YTD-Target-from-tables-with-different-granularity/m-p/1496772#M28868</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am pretty new to Power BI.&lt;/P&gt;&lt;P&gt;I have two Facts tables, one for the Annual Targets and one for the Actual Sales.&lt;/P&gt;&lt;P&gt;The Target table contains all the possible combination of Sales Office, Division, Product with Annual targets (the fiscal year is from July to June)&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Sales Office&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Division&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Target&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Rome&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product A&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;100000&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Rome&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product B&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;150000&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Munich&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product A&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;200000&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;…&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Sales table contains the sales concluded every month. Note that in one month, we might sell only specific products and in another one nothing. As a convention, I have decided to use the start of the month to identify the selling month.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Sales Office&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Division&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Sales Amount&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Month&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Rome&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product A&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;100&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1-Oct-20&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Munich&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product B&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;130&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1-Oct-20&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Munich&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product A&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;400&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1-Nov-20&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Rome&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product B&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;140&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1-Nov-20&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also a Calendar table with a relationship with the Sales[Month] and three Dim tables for Sales Office, Division and Product all connected to the two Facts Tables.&lt;/P&gt;&lt;P&gt;I have now to calculate the YTD Actual vs the YTD Target measures to be used in charts / pivot tables with slicers on all the dimensions month by month. So the Target should be calculated as monthly to be compared with the actual sales.&lt;/P&gt;&lt;P&gt;As a first step, I think I have to add a Date column in the Target table using maybe 1-Jun-21 as same date for all the rows (considering the end of our Fiscal Year is June). Then, maybe I need to calculate the monthly target from the annual etc. And finally, write the measures.&lt;/P&gt;&lt;P&gt;I would really appreciate your help in solving the above problem.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Damiano&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2020 15:52:10 GMT</pubDate>
    <dc:creator>SimDam</dc:creator>
    <dc:date>2020-11-16T15:52:10Z</dc:date>
    <item>
      <title>YTD Actual vs YTD Target from tables with different granularity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Actual-vs-YTD-Target-from-tables-with-different-granularity/m-p/1496772#M28868</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am pretty new to Power BI.&lt;/P&gt;&lt;P&gt;I have two Facts tables, one for the Annual Targets and one for the Actual Sales.&lt;/P&gt;&lt;P&gt;The Target table contains all the possible combination of Sales Office, Division, Product with Annual targets (the fiscal year is from July to June)&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Sales Office&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Division&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Target&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Rome&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product A&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;100000&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Rome&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product B&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;150000&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Munich&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product A&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;200000&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;…&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Sales table contains the sales concluded every month. Note that in one month, we might sell only specific products and in another one nothing. As a convention, I have decided to use the start of the month to identify the selling month.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Sales Office&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Division&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Sales Amount&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Month&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Rome&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product A&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;100&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1-Oct-20&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Munich&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product B&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;130&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1-Oct-20&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Munich&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product A&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;400&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1-Nov-20&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Rome&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product B&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;140&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1-Nov-20&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also a Calendar table with a relationship with the Sales[Month] and three Dim tables for Sales Office, Division and Product all connected to the two Facts Tables.&lt;/P&gt;&lt;P&gt;I have now to calculate the YTD Actual vs the YTD Target measures to be used in charts / pivot tables with slicers on all the dimensions month by month. So the Target should be calculated as monthly to be compared with the actual sales.&lt;/P&gt;&lt;P&gt;As a first step, I think I have to add a Date column in the Target table using maybe 1-Jun-21 as same date for all the rows (considering the end of our Fiscal Year is June). Then, maybe I need to calculate the monthly target from the annual etc. And finally, write the measures.&lt;/P&gt;&lt;P&gt;I would really appreciate your help in solving the above problem.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Damiano&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 15:52:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Actual-vs-YTD-Target-from-tables-with-different-granularity/m-p/1496772#M28868</guid>
      <dc:creator>SimDam</dc:creator>
      <dc:date>2020-11-16T15:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Actual vs YTD Target from tables with different granularity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Actual-vs-YTD-Target-from-tables-with-different-granularity/m-p/1496783#M28869</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="270849" data-lia-user-login="SimDam" class="lia-mention lia-mention-user"&gt;SimDam&lt;/a&gt; , refer to my blog on the same topic if those can help&lt;/P&gt;
&lt;P&gt;Distributing/Allocating the Yearly Target(Convert to Daily Target): &lt;A href="https://community.powerbi.com/t5/Community-Blog/Distributing-Allocating-the-Yearly-Target-Convert-to-Daily/ba-p/1463290" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Distributing-Allocating-the-Yearly-Target-Convert-to-Daily/ba-p/1463290&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Distributing/Allocating the Yearly Target(Convert to Daily Target): Measure ( Daily/YTD): Magic of CLOSINGBALANCEYEAR With TOTALYTD/DATESYTD: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Yearly-Target-Convert-to/ba-p/1476400" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Yearly-Target-Convert-to/ba-p/1476400&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 15:54:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Actual-vs-YTD-Target-from-tables-with-different-granularity/m-p/1496783#M28869</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-16T15:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Actual vs YTD Target from tables with different granularity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Actual-vs-YTD-Target-from-tables-with-different-granularity/m-p/1499628#M28972</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your answer. I have already a huge target table and I would avoid introducing the day concept. The best solution for me would be to add one Date column in the table that represents the end of the FY to be connected to the Dim_Calendar and then use only measures to come up with the YTD Target at the month level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it feasible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 15:53:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-Actual-vs-YTD-Target-from-tables-with-different-granularity/m-p/1499628#M28972</guid>
      <dc:creator>SimDam</dc:creator>
      <dc:date>2020-11-17T15:53:35Z</dc:date>
    </item>
  </channel>
</rss>

