<?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: I want to show value from start date till now in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-show-value-from-start-date-till-now/m-p/2766291#M85925</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can see that you created a one-to-many relationship between the original table and the date table.&lt;/P&gt;
&lt;P&gt;First of all, one-end table can filter multi-end tables. When you use date as the dimension, if you select August 2, then only the data corresponding to August 2 will be displayed, and the previous data will not be displayed. If there is no data on August 2, it will be displayed as empty.&lt;/P&gt;
&lt;P&gt;Secondly, you want to set a value to specify the withdrawal date of a certain company. I am not very sure how you provide the date. Based on your scenario and description, I created a "WithDraw" table to simulate the withdrawal date of the company.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your question, my understanding is to select a date and display the company's value up to today (unless the company has a withdraw date).&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;(1)This is my test date : ‘Investors’&amp;nbsp;&amp;nbsp; ‘WithDraw’&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ‘Table’&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = CALENDAR( FIRSTDATE('Investors'[Date]) , TODAY())&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(2) Below is the relationship before the table, we don't need to establish the relationship between 'Investors' and 'Date' table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(3)We can click “New Measure” to create a measure : ‘isDisplay’&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;isDisplay =
VAR _select_date =
    SELECTEDVALUE ( 'Table'[Date] )
VAR _invest_date =
    SELECTEDVALUE ( 'Investors'[Date] )
VAR _withdraw_date =
    SELECTCOLUMNS (
        FILTER (
            'WithDraw',
            'WithDraw'[Investment Comapany]
                = SELECTEDVALUE ( 'Investors'[Investment Company] )
        ),
        "withdraw_date", [WithDraw Date]
    )
RETURN
    IF (
        _withdraw_date = BLANK ()
            &amp;amp;&amp;amp; _select_date &amp;gt; _invest_date,
        1,
        IF ( _select_date &amp;lt; _withdraw_date &amp;amp;&amp;amp; _select_date &amp;gt; _invest_date, 1, -1 )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;(4)We can put the measure in the “Filter on this visual” and configure it and then click “Apply filter”:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(5) 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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this method does not meet your needs, you can provide us with your special &lt;STRONG&gt;sample data&lt;/STRONG&gt; and the &lt;STRONG&gt;desired output sample&lt;/STRONG&gt; data in the form of &lt;STRONG&gt;tables&lt;/STRONG&gt;, so that we can better help you solve the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
    <pubDate>Wed, 14 Sep 2022 07:03:32 GMT</pubDate>
    <dc:creator>v-yueyunzh-msft</dc:creator>
    <dc:date>2022-09-14T07:03:32Z</dc:date>
    <item>
      <title>I want to show value from start date till now</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-show-value-from-start-date-till-now/m-p/2764720#M85836</link>
      <description>&lt;P&gt;Hello eevryone i have a company A,B,C,D which invested on 8/1/2022, then Company E invested on 9/1/2022 , and date table which shows all dates&lt;BR /&gt;&lt;BR /&gt;i made a relationship between the tables but when i select september, on the date slicer, only company B shows, and if i choose a day slicer, if i choose august 2, i dont have data, how can i fix? &lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&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;&lt;img /&gt;&lt;BR /&gt;so i want the date to keep creating with them same value until i create a variable that stops for example, Investor A wants to withdraw on 10/1/2022 so after 9/30/2022, investor A must stop producing data so investor A last date must be 9/30/2022&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 14:40:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-show-value-from-start-date-till-now/m-p/2764720#M85836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-13T14:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: I want to show value from start date till now</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-show-value-from-start-date-till-now/m-p/2766291#M85925</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can see that you created a one-to-many relationship between the original table and the date table.&lt;/P&gt;
&lt;P&gt;First of all, one-end table can filter multi-end tables. When you use date as the dimension, if you select August 2, then only the data corresponding to August 2 will be displayed, and the previous data will not be displayed. If there is no data on August 2, it will be displayed as empty.&lt;/P&gt;
&lt;P&gt;Secondly, you want to set a value to specify the withdrawal date of a certain company. I am not very sure how you provide the date. Based on your scenario and description, I created a "WithDraw" table to simulate the withdrawal date of the company.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your question, my understanding is to select a date and display the company's value up to today (unless the company has a withdraw date).&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;(1)This is my test date : ‘Investors’&amp;nbsp;&amp;nbsp; ‘WithDraw’&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ‘Table’&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = CALENDAR( FIRSTDATE('Investors'[Date]) , TODAY())&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(2) Below is the relationship before the table, we don't need to establish the relationship between 'Investors' and 'Date' table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(3)We can click “New Measure” to create a measure : ‘isDisplay’&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;isDisplay =
VAR _select_date =
    SELECTEDVALUE ( 'Table'[Date] )
VAR _invest_date =
    SELECTEDVALUE ( 'Investors'[Date] )
VAR _withdraw_date =
    SELECTCOLUMNS (
        FILTER (
            'WithDraw',
            'WithDraw'[Investment Comapany]
                = SELECTEDVALUE ( 'Investors'[Investment Company] )
        ),
        "withdraw_date", [WithDraw Date]
    )
RETURN
    IF (
        _withdraw_date = BLANK ()
            &amp;amp;&amp;amp; _select_date &amp;gt; _invest_date,
        1,
        IF ( _select_date &amp;lt; _withdraw_date &amp;amp;&amp;amp; _select_date &amp;gt; _invest_date, 1, -1 )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;(4)We can put the measure in the “Filter on this visual” and configure it and then click “Apply filter”:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(5) 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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this method does not meet your needs, you can provide us with your special &lt;STRONG&gt;sample data&lt;/STRONG&gt; and the &lt;STRONG&gt;desired output sample&lt;/STRONG&gt; data in the form of &lt;STRONG&gt;tables&lt;/STRONG&gt;, so that we can better help you solve the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 07:03:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-show-value-from-start-date-till-now/m-p/2766291#M85925</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2022-09-14T07:03:32Z</dc:date>
    </item>
  </channel>
</rss>

