<?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: Column value from date row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-value-from-date-row/m-p/4039139#M160143</link>
    <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on my testing, please &lt;SPAN&gt;try the following methods:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.Create the sample table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.Create the new measure to &lt;/SPAN&gt;&lt;SPAN&gt;calculate the value.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Price minus = 
var _today = TODAY()
VAR TargetDate = DATE(2024,1,8)
var _toprice = CALCULATE(SUM('Table'[Price]), 'Table'[Date] = _today)
var _tarprice = CALCULATE(SUM('Table'[Price]), 'Table'[Date] = TargetDate)
RETURN
_toprice - _tarprice&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;3.&lt;/SPAN&gt;&lt;SPAN&gt;Drag the measure into the card visual. &lt;/SPAN&gt;&lt;SPAN&gt;The result is shown below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2024 09:37:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-12T09:37:49Z</dc:date>
    <item>
      <title>Column value from date row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-value-from-date-row/m-p/4033821#M159827</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help&lt;/P&gt;&lt;P&gt;I would like to calculate a measure to show the value (price) in a column for todays date minus the value on 8/1/2024.&lt;/P&gt;&lt;P&gt;Can you show to create a measure of this.&lt;/P&gt;&lt;P&gt;Table: 1&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Price&lt;/TD&gt;&lt;TD&gt;Item&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;31/12/2023&lt;/TD&gt;&lt;TD&gt;5.33&lt;/TD&gt;&lt;TD&gt;Hat&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08/01/2024&lt;/TD&gt;&lt;TD&gt;7.10&lt;/TD&gt;&lt;TD&gt;Coat&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10/07/2024&lt;/TD&gt;&lt;TD&gt;11.30&lt;/TD&gt;&lt;TD&gt;Show&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 06:33:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-value-from-date-row/m-p/4033821#M159827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-10T06:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Column value from date row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-value-from-date-row/m-p/4039139#M160143</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on my testing, please &lt;SPAN&gt;try the following methods:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.Create the sample table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.Create the new measure to &lt;/SPAN&gt;&lt;SPAN&gt;calculate the value.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Price minus = 
var _today = TODAY()
VAR TargetDate = DATE(2024,1,8)
var _toprice = CALCULATE(SUM('Table'[Price]), 'Table'[Date] = _today)
var _tarprice = CALCULATE(SUM('Table'[Price]), 'Table'[Date] = TargetDate)
RETURN
_toprice - _tarprice&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;3.&lt;/SPAN&gt;&lt;SPAN&gt;Drag the measure into the card visual. &lt;/SPAN&gt;&lt;SPAN&gt;The result is shown below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 09:37:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-value-from-date-row/m-p/4039139#M160143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-12T09:37:49Z</dc:date>
    </item>
  </channel>
</rss>

