<?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: MAX function with Text column doesn't work in Live Connection SSAS Tabular in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1081539#M15273</link>
    <description>&lt;P&gt;Thanks Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you usually used MAX function in Power BI like in my situation as well?&lt;/P&gt;&lt;P&gt;Did you try the same function in SSAS Tabular(SSDT) to make measure in it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When Power BI is connected with SSAS Tabular is the same, it doesn't work MAX function even I make report level measure in Power BI.&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2020 14:57:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-08T14:57:47Z</dc:date>
    <item>
      <title>MAX function with Text column doesn't work in Live Connection SSAS Tabular</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1081509#M15267</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a trouble using DAX function: MAX.&lt;/P&gt;&lt;P&gt;I want to get a unique value from Text column to use switch to use different calculation for each category in one measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Power BI Desktop not using SSAS Tabular, I could make MAX function with Text column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;e.g. Measure = IF(MAX('Table'[TextColumn]) = "A"), Value, Blank())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Table looks like this.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Category&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2019-01-03&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2019-01-03&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;2020-01-03&lt;/TD&gt;&lt;TD&gt;140&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2020-01-04&lt;/TD&gt;&lt;TD&gt;570&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2020-01-04&lt;/TD&gt;&lt;TD&gt;130&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;2020-01-04&lt;/TD&gt;&lt;TD&gt;330&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, whenever I use the same function in SSAS Tabular, it makes error with message like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;"the function max takes an argument that evaluates to numbers or dates dax...&amp;nbsp;"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used MAX function to get unique value from text column in DAX function, but I'm stuck in trouble because it doesn't work in SSAS Tabular.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please give me any idea to solve this issue.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 14:44:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1081509#M15267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-08T14:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: MAX function with Text column doesn't work in Live Connection SSAS Tabular</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1081524#M15269</link>
      <description>&lt;P&gt;the way you wrote it, you perhaps tried to do this instead&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;e.g. Measure = IF(MAX('Table'[TextColumn]) = "A", Value, Blank())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;there was an extra ")"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;don't know if it helps&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 14:50:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1081524#M15269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-08T14:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: MAX function with Text column doesn't work in Live Connection SSAS Tabular</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1081531#M15271</link>
      <description>&lt;P&gt;Perhaps LASTNONBLANK ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's good to know about the MAX function because I use it all the time with text columns.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 14:53:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1081531#M15271</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-08T14:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: MAX function with Text column doesn't work in Live Connection SSAS Tabular</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1081536#M15272</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I'm sorry I put wrong express in my post, I surely used correct expression that works in Power BI without SSAS.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;like you corrected.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;e.g. Measure = IF(MAX('Table'[TextColumn]) = "A", Value, Blank())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Therefore, the error is not from ")"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 14:54:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1081536#M15272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-08T14:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: MAX function with Text column doesn't work in Live Connection SSAS Tabular</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1081539#M15273</link>
      <description>&lt;P&gt;Thanks Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you usually used MAX function in Power BI like in my situation as well?&lt;/P&gt;&lt;P&gt;Did you try the same function in SSAS Tabular(SSDT) to make measure in it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When Power BI is connected with SSAS Tabular is the same, it doesn't work MAX function even I make report level measure in Power BI.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 14:57:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1081539#M15273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-08T14:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: MAX function with Text column doesn't work in Live Connection SSAS Tabular</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1081547#M15275</link>
      <description>No, generally not with SSAS Tabular, just in Power BI Desktop against an imported data set. Although, that is supposed to be SSAS Tabular under the hood so ?&lt;BR /&gt;&lt;BR /&gt;Very strange.</description>
      <pubDate>Fri, 08 May 2020 15:02:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1081547#M15275</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-08T15:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: MAX function with Text column doesn't work in Live Connection SSAS Tabular</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1081565#M15277</link>
      <description>&lt;P&gt;Yes, It is very strange.&lt;/P&gt;&lt;P&gt;I cannot figure out any clue at all that can make different work.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 15:09:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1081565#M15277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-08T15:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: MAX function with Text column doesn't work in Live Connection SSAS Tabular</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1083057#M15390</link>
      <description>&lt;P&gt;Could you please review below DAX expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TEST_:=&lt;BR /&gt;IF(LASTNONBLANK('FactPayment'[Category], "SUM_PAY_AMT_KRW") , [Payment_KRW (AS-IS)],BLANK())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It makes error in SSAS tabular.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 00:14:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1083057#M15390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-11T00:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: MAX function with Text column doesn't work in Live Connection SSAS Tabular</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1087640#M15581</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on my test using Power Bi version :&amp;nbsp;2.80.5803.1061 64-bit .I cannot reproduce your issue here. Could you please update your Power bi desktop and check again?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or we can try this formula.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF(value('Table'[TextColumn]) = "A", Value, Blank())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 09:59:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1087640#M15581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-13T09:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: MAX function with Text column doesn't work in Live Connection SSAS Tabular</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1087800#M15595</link>
      <description>If you are sure that in the context there'll be only one value anyway... why not use SELECTEDVALUE?&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Wed, 13 May 2020 12:07:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1087800#M15595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-13T12:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: MAX function with Text column doesn't work in Live Connection SSAS Tabular</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1088167#M15622</link>
      <description>&lt;P&gt;Thanks for your kind reproduce with image, Frank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However my issue is when I'm working with SSAS live connect, not just Power BI alone.&lt;/P&gt;&lt;P&gt;The same DAX expression works in Power BI, but when the data comes from SSAS tabular mode in Live connection, the expression makes error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks weird.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 15:30:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1088167#M15622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-13T15:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: MAX function with Text column doesn't work in Live Connection SSAS Tabular</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1088172#M15624</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have experience that worked the SELECTEDVALUE function in SSAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you mean my expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TEST_:=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IF(MAX('FactPayment'[Category], "SUM_PAY_AMT_KRW") , [Payment_KRW (AS-IS)], BLANK())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;change into like below...?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IF(SELECTEDVALUE('FactPayment'[Category], "SUM_PAY_AMT_KRW") , [Payment_KRW (AS-IS)], BLANK())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not have any knowledge with the function, if my expression with SELECTEDVALUE is wrong, please correct it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried MAX, LASTNONBLANK, FIRSTNONBLANK... but all of the function made error in SSAS...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 15:40:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1088172#M15624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-13T15:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: MAX function with Text column doesn't work in Live Connection SSAS Tabular</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1088399#M15635</link>
      <description>Whether you can use this function or not depends on the version of the product you use. Please find the documentation and examples of usage here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dax.guide/selectedvalue/" target="_blank"&gt;https://dax.guide/selectedvalue/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Wed, 13 May 2020 18:25:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/1088399#M15635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-13T18:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: MAX function with Text column doesn't work in Live Connection SSAS Tabular</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/2156132#M49803</link>
      <description>&lt;P&gt;did you ever find a solution to this? running into the exact problem now, and can't think of a way to workaround it&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 15:04:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-function-with-Text-column-doesn-t-work-in-Live-Connection/m-p/2156132#M49803</guid>
      <dc:creator>adavbn3</dc:creator>
      <dc:date>2021-10-26T15:04:24Z</dc:date>
    </item>
  </channel>
</rss>

