<?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: Help with a complex problem please. Have tried 2 solutions. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-a-complex-problem-please-Have-tried-2-solutions/m-p/3515823#M134970</link>
    <description>&lt;P&gt;Please provide sample data (with sensitive information removed) that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot). Leave out anything not related to the issue. &lt;BR /&gt;If you are unsure how to do that please refer to &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;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;If you want to get answers faster please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Nov 2023 15:32:45 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-11-04T15:32:45Z</dc:date>
    <item>
      <title>Help with a complex problem please. Have tried 2 solutions.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-a-complex-problem-please-Have-tried-2-solutions/m-p/3511676#M134764</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt;&lt;BR /&gt;I have a dataset that I am pulling from my work server including a bunch of information about business, projectid(distinct), created date of these projects and so on.&lt;BR /&gt;&lt;BR /&gt;What I want to do is see the projects per month in line graph, which is quite simple with distinctcount(projects), put it in a graph with dates.&lt;BR /&gt;However what I also want to see is a running cummilative total of this ine a line chart. So if may(FY start) has 110 projects it will show 110 BUT, from June it should show June figure+May figure added to it, example; 110(may)+142(june)=252 june, then 252(prior)+150 of july= 402. This is just actual projects we made. Fiscal year start = 1st may, FY end = 30 april.&lt;BR /&gt;x-axis=date | y-axis = running cummulative total.&lt;BR /&gt;&lt;BR /&gt;How can I make a target projects too with this? which I want as 167 May, 167(may)+167(june)=334, 334(may,june)+167(july)=501 and so on. (Note: there is not dataset for this and I would like a solution for it).&lt;BR /&gt;x-axis=date | y-axis = running total of "targets"&lt;BR /&gt;&lt;BR /&gt;I was able to comeup with a formula that does this calculation, however no slicers work on this graph. Date slicer works, but other slicers like: Project status (draft, order, offer, rejected), region(south ,west,east, north), countries does not work at all.&lt;BR /&gt;&lt;BR /&gt;Formula:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;VAR CurrentMonth = SELECTEDVALUE(VT_Projects_Summary[Month_Year])&lt;/P&gt;&lt;P&gt;VAR FiscalYearStartMonth = 5 &amp;nbsp;// May&lt;/P&gt;&lt;P&gt;VAR FiscalYearEndMonth = 4 &amp;nbsp; // April&lt;/P&gt;&lt;P&gt;VAR FiscalYearStartDate =&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; IF(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MONTH(CurrentMonth) &amp;lt; FiscalYearStartMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DATE(YEAR(CurrentMonth) - 1, FiscalYearStartMonth, 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DATE(YEAR(CurrentMonth), FiscalYearStartMonth, 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; IF(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CurrentMonth &amp;lt; FiscalYearStartDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SUMX(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FILTER(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ALL(VT_Projects_Summary),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VT_Projects_Summary[Month_Year] &amp;gt;= FiscalYearStartDate &amp;amp;&amp;amp; VT_Projects_Summary[Month_Year] &amp;lt;= CurrentMonth &amp;amp;&amp;amp;VT_Projects_Summary[ProjectType] = "Lowercost"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ProjectsPerMonth]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&lt;BR /&gt;Other solutions tried:&lt;BR /&gt;1) giving index to each projectid but then again it slices projects by per month and not how I want them.&lt;BR /&gt;2) Making a loop in powerquery which does basically what I want but adding it to graph slices it again by per month.&lt;BR /&gt;3) giving a manual actual and target value to each month using calculated column but then for 31 days it just says "167", Also its not dynamic and highly manual process.&lt;BR /&gt;&lt;BR /&gt;Any help is welcome!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 14:03:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-a-complex-problem-please-Have-tried-2-solutions/m-p/3511676#M134764</guid>
      <dc:creator>ben_har</dc:creator>
      <dc:date>2023-11-02T14:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a complex problem please. Have tried 2 solutions.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-a-complex-problem-please-Have-tried-2-solutions/m-p/3515823#M134970</link>
      <description>&lt;P&gt;Please provide sample data (with sensitive information removed) that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot). Leave out anything not related to the issue. &lt;BR /&gt;If you are unsure how to do that please refer to &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;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;If you want to get answers faster please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2023 15:32:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-a-complex-problem-please-Have-tried-2-solutions/m-p/3515823#M134970</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-11-04T15:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a complex problem please. Have tried 2 solutions.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-a-complex-problem-please-Have-tried-2-solutions/m-p/3519271#M135168</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="639906" data-lia-user-login="ben_har" class="lia-mention lia-mention-user"&gt;ben_har&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) This is my test data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2) We can create a measure.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE(DISTINCTCOUNT('Table'[projects]),FILTER(ALLSELECTED('Table'),'Table'[date]&amp;lt;=MAX('Table'[date])))&lt;/LI-CODE&gt;
&lt;P&gt;(3) Then the result is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&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 tables (&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;) with&amp;nbsp;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 07:51:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-a-complex-problem-please-Have-tried-2-solutions/m-p/3519271#M135168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-07T07:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a complex problem please. Have tried 2 solutions.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-a-complex-problem-please-Have-tried-2-solutions/m-p/3519612#M135188</link>
      <description>&lt;P&gt;Thank you that worked like a charm!&lt;BR /&gt;&lt;BR /&gt;Sorry to others as I could not provide a dataset due to senstivity.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 10:24:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-a-complex-problem-please-Have-tried-2-solutions/m-p/3519612#M135188</guid>
      <dc:creator>ben_har</dc:creator>
      <dc:date>2023-11-07T10:24:49Z</dc:date>
    </item>
  </channel>
</rss>

