<?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: DAX - Selected value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107255#M109596</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="387872" data-lia-user-login="Prabha45" class="lia-mention lia-mention-user"&gt;Prabha45&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cannot have an integer with delimiter. What exactly are you trying to achieve?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2023 07:18:34 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-03-02T07:18:34Z</dc:date>
    <item>
      <title>DAX - Selected value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107177#M109583</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I wrote a measure where if is January is selected measure shows 1, february 2, so on till december.&lt;BR /&gt;Measure = switch(selectedvalue&lt;BR /&gt;&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; (dim_table[month_name]),&lt;BR /&gt;&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;"January",1,&lt;BR /&gt;&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; "February",2)&lt;BR /&gt;Is it possible , if both January and February are selected, measure should show 1,2. If January,February and March are selected measure should show 1,2,3.&lt;BR /&gt;&lt;BR /&gt;Thankyou&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 06:09:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107177#M109583</guid>
      <dc:creator>Prabha45</dc:creator>
      <dc:date>2023-03-02T06:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Selected value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107190#M109585</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="387872" data-lia-user-login="Prabha45" class="lia-mention lia-mention-user"&gt;Prabha45&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) try to add a column like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;month_number = 
SWITCH(
    [month_name],
    "January", 1,
    "February", 2,
    "March", 3,
    "April", 4,
    "May", 5,
    "June", 6,
    "July", 7,
    "August", 8,
    "September", 9,
    "October", 10,
    "November", 11,
    12
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) then plot a measure like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
CONCATENATEX(
    TableName,
    TableName[month_number],
    ","
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 06:22:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107190#M109585</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-02T06:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Selected value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107207#M109588</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="387872" data-lia-user-login="Prabha45" class="lia-mention lia-mention-user"&gt;Prabha45&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if the month name column is coming from a date table the you can try.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CONCATENATEX ( VALUES ( 'Date'[Date].[Month] ), [Month], "," )&lt;/P&gt;
&lt;P&gt;However, the following shall work in all scenarios&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CONCATENATEX ( &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;VALUES ( 'Table'[Month] ), &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SWITCH ( &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[Month], &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"January", 1,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"February", 2,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;etc.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 06:48:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107207#M109588</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-02T06:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Selected value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107209#M109589</link>
      <description>&lt;P&gt;Thanks that worked. But, the measure is in Text format. I used convert to change it to integer then the output changed to 123.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 06:51:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107209#M109589</guid>
      <dc:creator>Prabha45</dc:creator>
      <dc:date>2023-03-02T06:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Selected value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107226#M109591</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks that worked. I need the measure to be in integer format, but it is in Text format. I used convert to change it to integer then the output changed to 123.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 07:01:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107226#M109591</guid>
      <dc:creator>Prabha45</dc:creator>
      <dc:date>2023-03-02T07:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Selected value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107253#M109595</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="387872" data-lia-user-login="Prabha45" class="lia-mention lia-mention-user"&gt;Prabha45&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;why change to integer?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 07:13:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107253#M109595</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-02T07:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Selected value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107255#M109596</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="387872" data-lia-user-login="Prabha45" class="lia-mention lia-mention-user"&gt;Prabha45&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cannot have an integer with delimiter. What exactly are you trying to achieve?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 07:18:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107255#M109596</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-02T07:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Selected value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107272#M109601</link>
      <description>&lt;P&gt;I need to trigger a function app with the filters selected in Power BI as input for the function app. It has month parameter which accepts inputs as 1 or 1,2 or 1,2,3. If I use the above measure( text format) it takes the values as "1,2,3". So, I converted it to integer then it took input as 123.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 07:29:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107272#M109601</guid>
      <dc:creator>Prabha45</dc:creator>
      <dc:date>2023-03-02T07:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Selected value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107291#M109604</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I need to trigger a function app with the filters selected in Power BI as input for the function app. It has month parameter which accepts inputs as 1 or 1,2 or 1,2,3. If I use the above measure( text format) it takes the values as "1,2,3". So, I converted it to integer then it took input as 123.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 07:41:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107291#M109604</guid>
      <dc:creator>Prabha45</dc:creator>
      <dc:date>2023-03-02T07:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Selected value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107356#M109611</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="387872" data-lia-user-login="Prabha45" class="lia-mention lia-mention-user"&gt;Prabha45&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So with CONVERT you got your desired outcome? Or you still need further support? If so please clarify further perhaps with some examples and/or screenshots.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 08:23:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107356#M109611</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-02T08:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Selected value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107372#M109614</link>
      <description>&lt;P&gt;No. If I use convert, the output of the measure changes to 123. With 123 as input, I can't trigger the function app.&lt;BR /&gt;If I don't use convert, the measure output is 1,2,3. when I pass this as input it takes as "1,2,3".&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 08:30:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107372#M109614</guid>
      <dc:creator>Prabha45</dc:creator>
      <dc:date>2023-03-02T08:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Selected value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107434#M109622</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="387872" data-lia-user-login="Prabha45" class="lia-mention lia-mention-user"&gt;Prabha45&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you realize that there is no possibility that I have any idea what function app is. I don't see what you see. I have no access to your report so please treat me as complete blind when explaining to me ☺️&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 09:09:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Selected-value/m-p/3107434#M109622</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-02T09:09:52Z</dc:date>
    </item>
  </channel>
</rss>

