<?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: Store fixed date in variable in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Store-fixed-date-in-variable/m-p/719237#M1315</link>
    <description>&lt;P&gt;try this syntax:&lt;/P&gt;
&lt;PRE&gt;vMotor_Paid =
CALCULATE (
    SUM ( Paid_excel[PAID_AMOUNT] ),
    FILTER ( Paid_excel, Paid_excel[PAID_DATE] = { [VpeDate] } )
)&lt;/PRE&gt;</description>
    <pubDate>Wed, 19 Jun 2019 16:18:46 GMT</pubDate>
    <dc:creator>Stachu</dc:creator>
    <dc:date>2019-06-19T16:18:46Z</dc:date>
    <item>
      <title>Store fixed date in variable</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Store-fixed-date-in-variable/m-p/718929#M1299</link>
      <description>&lt;P&gt;Hi all&amp;nbsp;&lt;/P&gt;&lt;P&gt;i write this expression and there is not any errors in this&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;vMotor_Paid = CALCULATE(SUM(Paid_excel[PAID_AMOUNT]),FILTER(Paid_excel[PAID_DATE]={[VpeDate]}))&lt;/PRE&gt;&lt;P&gt;Here I create another variable of VpeDate and store date like this "12-03-2017" (mm-dd-yyyy)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now on KPI card when i drag this vMotor_Paid expression this shows an error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Calculation error in measure 'Varaibles Table'[vMotor_Paid: DAX comaprison operations do not support&amp;nbsp;&lt;/P&gt;&lt;P&gt;comparing values of type Date with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values "&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 11:26:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Store-fixed-date-in-variable/m-p/718929#M1299</guid>
      <dc:creator>Bakhtawar</dc:creator>
      <dc:date>2019-06-19T11:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Store fixed date in variable</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Store-fixed-date-in-variable/m-p/719237#M1315</link>
      <description>&lt;P&gt;try this syntax:&lt;/P&gt;
&lt;PRE&gt;vMotor_Paid =
CALCULATE (
    SUM ( Paid_excel[PAID_AMOUNT] ),
    FILTER ( Paid_excel, Paid_excel[PAID_DATE] = { [VpeDate] } )
)&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jun 2019 16:18:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Store-fixed-date-in-variable/m-p/719237#M1315</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2019-06-19T16:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Store fixed date in variable</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Store-fixed-date-in-variable/m-p/719739#M1355</link>
      <description>&lt;P&gt;Hi when i try to add more filters this shows nothing&amp;nbsp; i tried this&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;vMotor_Paid = 
CALCULATE (
    SUM ( Paid_excel[PAID_AMOUNT] ),
    FILTER ( Paid_excel, Paid_excel[PAID_DATE] = { [VpeDate] } ),&lt;BR /&gt;FILTER(Premium_Excel,Premium_Excel[LOB] = "MOTOR"),&lt;BR /&gt;FILTER(Paid_excel,Paid_excel[Flag] = "Paid"))&lt;/PRE&gt;&lt;P&gt;and in VpeDate i add date like this&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VpeDate = date(2017,12,31)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Jun 2019 05:38:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Store-fixed-date-in-variable/m-p/719739#M1355</guid>
      <dc:creator>Bakhtawar</dc:creator>
      <dc:date>2019-06-20T05:38:11Z</dc:date>
    </item>
  </channel>
</rss>

