<?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 Date field interacting with a table of data (with specific dates) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2412214#M63575</link>
    <description>&lt;P&gt;Ok, i iwll have a look thank you. There is not really a eirachy/rules for which dates come before others, in essence i needed powerBI to look across the row per item and check to see:&lt;/P&gt;&lt;P&gt;@ 'Date selected' what is the status of the closes date that has just passed....&lt;/P&gt;&lt;P&gt;but there is no order to which status it could be. i.e. if it is currenlty 'acquired' then it may turn to 'liquidated' or 'merged', likewise if its incorporated it may go stright to merged etc.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2022 12:01:35 GMT</pubDate>
    <dc:creator>JGARROD</dc:creator>
    <dc:date>2022-03-23T12:01:35Z</dc:date>
    <item>
      <title>Dynamic Date field interacting with a table of data (with specific dates)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2409587#M63412</link>
      <description>&lt;P&gt;Hi I have the following data (sample) actual data includes over 9000 rows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Entity&lt;/TD&gt;&lt;TD&gt;Bought&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Incorporated&lt;/TD&gt;&lt;TD&gt;Retired&lt;/TD&gt;&lt;TD&gt;Sold&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Liquid XR&lt;/TD&gt;&lt;TD&gt;12/05/2000&lt;/TD&gt;&lt;TD&gt;13/5/2020&lt;/TD&gt;&lt;TD&gt;17/02/2021&lt;/TD&gt;&lt;TD&gt;19/02/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Gerhold IR&lt;/TD&gt;&lt;TD&gt;12/05/2012&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Toopy FR&lt;/TD&gt;&lt;TD&gt;30/09/2003&lt;/TD&gt;&lt;TD&gt;24/12/2019&lt;/TD&gt;&lt;TD&gt;25/10/2018&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Dinky CK&lt;/TD&gt;&lt;TD&gt;12/05/2000&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Upward FG&lt;/TD&gt;&lt;TD&gt;18/06/2005&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;20/01/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Justhol DR&lt;/TD&gt;&lt;TD&gt;12/05/2000&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;24/01/2019&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need my user to be able to select a date in time (any date between 1990 and today) and for powerBI to return the count of status of the assets at that time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. date chosen : 01/01/2005 - 4 bought / 0 Incorporated/ 0 retired / 0 sold&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;date chosen: 10/05/2020 - 3 bought / 2 retired / 1 sold&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It basically needs to read the date that is closes and has passed and then pull through the status at that time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Id like this to be shown on something simple like a bar chart but again id like this to update when a date is selected via a selection box.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible and if so how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 13:26:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2409587#M63412</guid>
      <dc:creator>JGARROD</dc:creator>
      <dc:date>2022-03-22T13:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date field interacting with a table of data (with specific dates)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2409718#M63423</link>
      <description>&lt;P&gt;Create separate measures for each status like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Bought Measure =
var maxDate = MAX('Date'[Date])
return CALCULATE( COUNTROWS('Table'),
'Table'[Bought] &amp;lt;= maxDate &amp;amp;&amp;amp;
( ISBLANK( 'Table'[Incorporated]) || 'Table'[Incorporated] &amp;gt; maxDate ) &amp;amp;&amp;amp;
( ISBLANK( 'Table'[Retired]) || 'Table'[Retired] &amp;gt; maxDate ) &amp;amp;&amp;amp;
( ISBLANK( 'Table'[Sold]) || 'Table'[Sold] &amp;gt; maxDate )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:05:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2409718#M63423</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-22T14:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date field interacting with a table of data (with specific dates)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2409751#M63425</link>
      <description>&lt;P&gt;Thank you for your quick reply, if i were to create one of these for each status, would i then be able to add them all to the same visual?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would i then use a date slice to pinpoint a date in time in order to show to desired outcome?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:13:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2409751#M63425</guid>
      <dc:creator>JGARROD</dc:creator>
      <dc:date>2022-03-22T14:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date field interacting with a table of data (with specific dates)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2409790#M63429</link>
      <description>&lt;P&gt;Yes, you can add them all to the same visual, e.g. clustered column chart.&lt;/P&gt;&lt;P&gt;You could use a date slicer to pinpoint a data, you could also put the date on the x-axis of a chart and show changes in numbers over time.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:22:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2409790#M63429</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-22T14:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date field interacting with a table of data (with specific dates)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2409880#M63445</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;, hwoever this doesnt seem to be working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am assuming I should have a date table set up however i am a bit lost as to how all these things interact. - after adding this measure to a visual i am just getting a blank visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should i be connecting the date table to this (if at all?)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:53:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2409880#M63445</guid>
      <dc:creator>JGARROD</dc:creator>
      <dc:date>2022-03-22T14:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date field interacting with a table of data (with specific dates)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2409905#M63448</link>
      <description>&lt;P&gt;Yes, you would need a proper date table set up but it does not need to be related to your data table. Can you share a PBIX ?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:58:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2409905#M63448</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-22T14:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date field interacting with a table of data (with specific dates)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2410015#M63462</link>
      <description>&lt;P&gt;Sure, i think ive got it working (almost) - im just getting stuck on how to link the date table in to have the change over time across teh X axis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://www.dropbox.com/s/du23echic96imk5/PowerBI%20Demo%20File.pbix?dl=0" target="_blank"&gt;https://www.dropbox.com/s/du23echic96imk5/PowerBI%20Demo%20File.pbix?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know how you get on -&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 15:41:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2410015#M63462</guid>
      <dc:creator>JGARROD</dc:creator>
      <dc:date>2022-03-22T15:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date field interacting with a table of data (with specific dates)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2410042#M63465</link>
      <description>&lt;P&gt;Using the Day Month Year column is returning too many values, try using the Month Year column instead. You may also want to consider limiting the date range to further reduce the number of data points.&lt;/P&gt;&lt;P&gt;Finally, check out the SQL BI guys' take on how to get a custom date hierarchy to behave like an inbuilt one.&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/creating-a-simpler-and-chart-friendly-date-table-in-power-bi/" target="_self"&gt;https://www.sqlbi.com/articles/creating-a-simpler-and-chart-friendly-date-table-in-power-bi/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 15:50:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2410042#M63465</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-22T15:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date field interacting with a table of data (with specific dates)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2410293#M63476</link>
      <description>&lt;P&gt;This is almost there, i am running into an issue where PowerBI seems to be counting null values for the status's - i.e in the first few years there is just a date against some for a 'merged' status however it seem to be counting values for all the other status's aswell.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see there is no date in the columns for here on these specific rows but its counting them still, is there a way to remove this? prehaps a 'countifvalue'?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to current report -&amp;nbsp;&lt;A href="https://www.dropbox.com/s/aeyi9ue3pl4rr7k/PowerBI%20Demo%20File.pbix?dl=0" target="_blank"&gt;https://www.dropbox.com/s/aeyi9ue3pl4rr7k/PowerBI%20Demo%20File.pbix?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 17:38:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2410293#M63476</guid>
      <dc:creator>JGARROD</dc:creator>
      <dc:date>2022-03-22T17:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date field interacting with a table of data (with specific dates)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2411757#M63545</link>
      <description>&lt;P&gt;The report file you attached doesn't show that, the dates start in 2006&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 09:29:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2411757#M63545</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-23T09:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date field interacting with a table of data (with specific dates)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2411884#M63554</link>
      <description>&lt;P&gt;I have just chenged the date range to show the above image, yet still in 2006 the chart doesnt display the correct results &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 10:04:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2411884#M63554</guid>
      <dc:creator>JGARROD</dc:creator>
      <dc:date>2022-03-23T10:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date field interacting with a table of data (with specific dates)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2411916#M63557</link>
      <description>&lt;P&gt;In each of the measures where you are checking that the primary date for that measure is &amp;lt;= maxDate you need to add a check to make sure that the primary date is not blank.&lt;/P&gt;&lt;P&gt;Also, check the logic on the measures where you are looking at other dates. In the Merger measure you are excluding cases where the Incorporated date is before the merger date, I don't know if that's what you want.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 10:14:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2411916#M63557</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-23T10:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date field interacting with a table of data (with specific dates)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2412214#M63575</link>
      <description>&lt;P&gt;Ok, i iwll have a look thank you. There is not really a eirachy/rules for which dates come before others, in essence i needed powerBI to look across the row per item and check to see:&lt;/P&gt;&lt;P&gt;@ 'Date selected' what is the status of the closes date that has just passed....&lt;/P&gt;&lt;P&gt;but there is no order to which status it could be. i.e. if it is currenlty 'acquired' then it may turn to 'liquidated' or 'merged', likewise if its incorporated it may go stright to merged etc.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 12:01:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Date-field-interacting-with-a-table-of-data-with/m-p/2412214#M63575</guid>
      <dc:creator>JGARROD</dc:creator>
      <dc:date>2022-03-23T12:01:35Z</dc:date>
    </item>
  </channel>
</rss>

