<?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: Dynamic Measure calculation in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Measure-calculation/m-p/4110005#M54878</link>
    <description>&lt;P&gt;Please provide sample data 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).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data 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;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &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>Wed, 21 Aug 2024 00:49:49 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-08-21T00:49:49Z</dc:date>
    <item>
      <title>Dynamic Measure calculation</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Measure-calculation/m-p/4109599#M54868</link>
      <description>&lt;P&gt;Hi team ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;i am learning powerbi dax and i am facing difficulty in designing an approach for this implementation:&amp;nbsp;&lt;BR /&gt;i have a table with report date , product, activeflag and amount . When i select a date value from report date which is used as slicer i want to get all the rows displayed in a table visual which are tagged to the selected date + the rows that have date &amp;lt; selected date but with active flag ='Y' . Eg . If i have selected 2 aug in my slicer i should display all records belonging to 2 aug + plus active rows from 1 aug and 31 july + 30 july &amp;nbsp;etc . If i select 1 aug in slicer i should be displaying all rows from 1 aug plus only active rows from 31 july , 30 july etc . &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 16:14:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Measure-calculation/m-p/4109599#M54868</guid>
      <dc:creator>NMDGA</dc:creator>
      <dc:date>2024-08-20T16:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measure calculation</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Measure-calculation/m-p/4110005#M54878</link>
      <description>&lt;P&gt;Please provide sample data 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).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data 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;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &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>Wed, 21 Aug 2024 00:49:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Measure-calculation/m-p/4110005#M54878</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-08-21T00:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measure calculation</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Measure-calculation/m-p/4110502#M54880</link>
      <description>&lt;P&gt;lbendlin&amp;nbsp;, thanks for your concern about this case. I tried to create a sample data myself based on the user's requirement and implemented the result. Please check if there is anything that can be improved. Here is my solution:&lt;BR /&gt;Hi&amp;nbsp; &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/794547"&gt;@NMDGA&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyangliumsft_0-1724220892899.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1154462iEF0044ECF38A4629/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vyangliumsft_0-1724220892899.png" alt="vyangliumsft_0-1724220892899.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;When the same columns are used in the slicer and the table visual, then the table visual will change with the values selected by the slicer, and we can create a table of dates with no relationship to work with measure&lt;/P&gt;
&lt;P&gt;1. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date =
CALENDAR(
    DATE(2024,7,1),
    DATE(2024,10,31))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyangliumsft_1-1724220892902.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1154461i0C17BFF9421E8847/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vyangliumsft_1-1724220892902.png" alt="vyangliumsft_1-1724220892902.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _select=SELECTEDVALUE('Date'[Date])
return
IF(
    MAX('Table'[report date])=_select ||
    AND(
        MAX('Table'[report date])&amp;lt;_select,MAX('Table'[activeflag])="Y"),1,0)&lt;/LI-CODE&gt;
&lt;P&gt;3. Place [Flag]in Filters, set is=1, apply filter.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyangliumsft_2-1724220963170.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1154465iA9324FEBD1C99542/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vyangliumsft_2-1724220963170.png" alt="vyangliumsft_2-1724220963170.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;4. Result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyangliumsft_3-1724220963177.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1154466iE4D44A8940908373/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyangliumsft_3-1724220963177.png" alt="vyangliumsft_3-1724220963177.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 06:17:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Measure-calculation/m-p/4110502#M54880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-21T06:17:22Z</dc:date>
    </item>
  </channel>
</rss>

