<?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: the two date values form a Slicer i have on a Canvas into a DAX formula in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/717870#M1273</link>
    <description>&lt;P&gt;some success...!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SelectedColumn = if(('cpq quotesMikeII'[Is_Order_Submitted__c])=TRUE, "WON","pp")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;more to follow....thank you!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 18 Jun 2019 14:25:20 GMT</pubDate>
    <dc:creator>c-mschukas</dc:creator>
    <dc:date>2019-06-18T14:25:20Z</dc:date>
    <item>
      <title>the two date values form a Slicer i have on a Canvas into a DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/712068#M1088</link>
      <description>&lt;P&gt;i would like to reference&amp;nbsp;the two date values form a Slicer i have on a Canvas into a DAX formula (new column)...?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;notes inlcude:&lt;UL&gt;&lt;LI&gt;user selects start and stop date (calendar picker and/or slider)&lt;/LI&gt;&lt;LI&gt;dates are used in a formula for the values in a&amp;nbsp; calculated colum&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 21:27:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/712068#M1088</guid>
      <dc:creator>c-mschukas</dc:creator>
      <dc:date>2019-06-11T21:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: the two date values form a Slicer i have on a Canvas into a DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/713062#M1109</link>
      <description>&lt;P&gt;PowerBI does not support dynamic Calculated Columns (meaning, the values of CalculatedColumns cannot change once set, based on slicer values, etc.). You would need to create a Calculated Measure instead, to capture the selected value. And use that calculated measure in your DAX.&lt;/P&gt;&lt;P&gt;More details here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/selectedvalue-function" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/selectedvalue-function&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 15:33:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/713062#M1109</guid>
      <dc:creator>tarunsingla</dc:creator>
      <dc:date>2019-06-12T15:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: the two date values form a Slicer i have on a Canvas into a DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/714262#M1157</link>
      <description>&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm OK using the SelectValue function, but i don't know how to reference the Slicer and each of the two dates listed in the object's text boxes...?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 15:47:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/714262#M1157</guid>
      <dc:creator>c-mschukas</dc:creator>
      <dc:date>2019-06-13T15:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: the two date values form a Slicer i have on a Canvas into a DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/714315#M1159</link>
      <description>&lt;P&gt;Each slicer uses one field from the data model. In case your case, you have two slicers for two date fields. And you can use SELECTEDVALUE(YourTableName[YourDatefield]) to get the selected value of the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 16:53:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/714315#M1159</guid>
      <dc:creator>tarunsingla</dc:creator>
      <dc:date>2019-06-13T16:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: the two date values form a Slicer i have on a Canvas into a DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/715331#M1205</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in my Slicer object, there are two text fields from one field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would like to use these Slicer text boxes as Start and End dates (this works fine for filtering).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i'm not referencing these dates in my DAX formula?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SlicerValue = MAX('cpq quotes'[CreatedDate],TODAY())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;???&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;thank you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 15:25:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/715331#M1205</guid>
      <dc:creator>c-mschukas</dc:creator>
      <dc:date>2019-06-14T15:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: the two date values form a Slicer i have on a Canvas into a DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/715391#M1207</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;In this case, you would need two measures one for start date and one for end date. Something like this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SelectedStartDate = MINX(ALLSELECTED(Table1[CreatedDate]), Table1[CreatedDate])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SelectedEndDate = MAXX(ALLSELECTED(Table1[CreatedDate]), Table1[CreatedDate])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Jun 2019 16:47:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/715391#M1207</guid>
      <dc:creator>tarunsingla</dc:creator>
      <dc:date>2019-06-14T16:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: the two date values form a Slicer i have on a Canvas into a DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/715890#M1219</link>
      <description>&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the good news is the function doesn't error out.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SlicerValueMin = MINX(ALLSELECTED('cpq quotes'[CreatedDate]), 'cpq quotes'[CreatedDate])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;the bad news (question) is that i only retrieve the False condition (not the True)...???&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;n.b., i did this with a New Column. is this correct?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 16 Jun 2019 03:34:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/715890#M1219</guid>
      <dc:creator>c-mschukas</dc:creator>
      <dc:date>2019-06-16T03:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: the two date values form a Slicer i have on a Canvas into a DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/716206#M1232</link>
      <description>&lt;P&gt;thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;working on it and more to follow ASAP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 03:33:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/716206#M1232</guid>
      <dc:creator>c-mschukas</dc:creator>
      <dc:date>2019-06-17T03:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: the two date values form a Slicer i have on a Canvas into a DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/717012#M1249</link>
      <description>&lt;P&gt;good news, i can reference the two dates in the Slicer (thank you!).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now, i'm trying to get the date range between these two (to use in an If statement) and i get following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error Message:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MdxScript(Model) (6, 44) Calculation error in measure 'cpq quotesMikeII'[SelectedBetween]: A date column&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; containing duplicate dates was specified in the call to function 'DATESBETWEEN'. This is not supported.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SelectedBetween = DATESBETWEEN(('cpq quotesMikeII'[CreatedDate]),'cpq quotesMikeII'[SelectedStartDate],'cpq quotesMikeII'[SelectedEndDate])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;???&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;thank you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 21:20:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/717012#M1249</guid>
      <dc:creator>c-mschukas</dc:creator>
      <dc:date>2019-06-17T21:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: the two date values form a Slicer i have on a Canvas into a DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/717870#M1273</link>
      <description>&lt;P&gt;some success...!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SelectedColumn = if(('cpq quotesMikeII'[Is_Order_Submitted__c])=TRUE, "WON","pp")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;more to follow....thank you!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jun 2019 14:25:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/the-two-date-values-form-a-Slicer-i-have-on-a-Canvas-into-a-DAX/m-p/717870#M1273</guid>
      <dc:creator>c-mschukas</dc:creator>
      <dc:date>2019-06-18T14:25:20Z</dc:date>
    </item>
  </channel>
</rss>

