<?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: Textsplit command in Power BI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Textsplit-command-in-Power-BI/m-p/3380437#M127350</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Average Age =&lt;BR /&gt;VAR String = 'Table'[Age]&lt;BR /&gt;VAR Items =&lt;BR /&gt;SUBSTITUTE ( String, ",", "|" )&lt;BR /&gt;VAR Length =&lt;BR /&gt;COALESCE ( PATHLENGTH ( Items ), 1 )&lt;BR /&gt;VAR T =&lt;BR /&gt;GENERATESERIES ( 1, Length, 1 )&lt;BR /&gt;RETURN&lt;BR /&gt;AVERAGEX ( SELECTCOLUMNS ( T, "@Item", PATHITEM ( Items, [Value] ) ), [@Item] )&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2023 10:25:12 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-08-15T10:25:12Z</dc:date>
    <item>
      <title>Textsplit command in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Textsplit-command-in-Power-BI/m-p/3380386#M127349</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of adresses with the age of the habitants of each adres. I'm trying to create a measure in Power BI to show the average age of each adress. However, as seen below the age&amp;nbsp; is divided by a comma in a single cell. I don't want to split the cell into multiple rows or colums as some adresses consist of hundreds of habitants and i also have already 70K+ rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Age&lt;/TD&gt;&lt;TD&gt;Average age&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;29&lt;/TD&gt;&lt;TD&gt;29&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;22,22,22&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;22,21,21&lt;/TD&gt;&lt;TD&gt;21,33333333&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;22,20&lt;/TD&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;28&lt;/TD&gt;&lt;TD&gt;28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;32,31,24,23&lt;/TD&gt;&lt;TD&gt;27,5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;46,45,12,11,6&lt;/TD&gt;&lt;TD&gt;24&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula i used in Excell is the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=AVERAGE(VALUE(TEXTSPLIT('Age',",")))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a measure in Power BI similar to the formula in Excell, which has the output of Average age. What would be a similair formula to achieve the same result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 09:36:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Textsplit-command-in-Power-BI/m-p/3380386#M127349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-15T09:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Textsplit command in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Textsplit-command-in-Power-BI/m-p/3380437#M127350</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Average Age =&lt;BR /&gt;VAR String = 'Table'[Age]&lt;BR /&gt;VAR Items =&lt;BR /&gt;SUBSTITUTE ( String, ",", "|" )&lt;BR /&gt;VAR Length =&lt;BR /&gt;COALESCE ( PATHLENGTH ( Items ), 1 )&lt;BR /&gt;VAR T =&lt;BR /&gt;GENERATESERIES ( 1, Length, 1 )&lt;BR /&gt;RETURN&lt;BR /&gt;AVERAGEX ( SELECTCOLUMNS ( T, "@Item", PATHITEM ( Items, [Value] ) ), [@Item] )&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 10:25:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Textsplit-command-in-Power-BI/m-p/3380437#M127350</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-08-15T10:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Textsplit command in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Textsplit-command-in-Power-BI/m-p/3417410#M129326</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your quick response, i occured one problem when putting in the formula. Which is that PowerBI does not recognize my 'Table'[Age] when i try to type it as VAR String =. Currently it is marked as text in PowerBI. What can i do to solve this.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 09:44:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Textsplit-command-in-Power-BI/m-p/3417410#M129326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-06T09:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Textsplit command in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Textsplit-command-in-Power-BI/m-p/3417461#M129330</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code was intended for a calculated column. If you wish to create a measure you need to use aggregation function like MAX, MIN or SELECTEDVALUE&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 10:12:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Textsplit-command-in-Power-BI/m-p/3417461#M129330</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-09-06T10:12:37Z</dc:date>
    </item>
  </channel>
</rss>

