<?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: How to calculate the average size of size list text in Direct Query mode in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-the-average-size-of-size-list-text-in-Direct/m-p/3495226#M133901</link>
    <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do you have more sample data?&lt;/P&gt;
&lt;P&gt;the digit could be extracted with LEFT, RIGHT functions with DAX and PQ.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Oct 2023 03:48:59 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-10-25T03:48:59Z</dc:date>
    <item>
      <title>How to calculate the average size of size list text in Direct Query mode</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-the-average-size-of-size-list-text-in-Direct/m-p/3495219#M133899</link>
      <description>&lt;P&gt;In short, Now I have a text column like&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//maybe more than 3 size pairs&lt;/P&gt;&lt;P&gt;"24x24 36x36 64x80"&lt;/P&gt;&lt;P&gt;Now I have to calculate the average width (24 + 36 +64) / 3&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;further, I need to calculate how many square in the above text. (2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice: I use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;direct query&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;mode now.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Use DAX or power query are both OK.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 03:46:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-the-average-size-of-size-list-text-in-Direct/m-p/3495219#M133899</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-25T03:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the average size of size list text in Direct Query mode</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-the-average-size-of-size-list-text-in-Direct/m-p/3495226#M133901</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do you have more sample data?&lt;/P&gt;
&lt;P&gt;the digit could be extracted with LEFT, RIGHT functions with DAX and PQ.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 03:48:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-the-average-size-of-size-list-text-in-Direct/m-p/3495226#M133901</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-10-25T03:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the average size of size list text in Direct Query mode</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-the-average-size-of-size-list-text-in-Direct/m-p/3495237#M133902</link>
      <description>&lt;P&gt;we can make it manually,&lt;/P&gt;&lt;P&gt;[size_list]&lt;/P&gt;&lt;P&gt;"12x23 20x20 30x30 512x512"&lt;/P&gt;&lt;P&gt;"1024x768 1920x1080"&lt;/P&gt;&lt;P&gt;"2080x3070 1x1 2x2 3x4 4x5 5x6 6x7 7x8"&lt;/P&gt;&lt;P&gt;like these&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 03:56:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-the-average-size-of-size-list-text-in-Direct/m-p/3495237#M133902</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-25T03:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the average size of size list text in Direct Query mode</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-the-average-size-of-size-list-text-in-Direct/m-p/3500567#M134211</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;you can try with Power Query. check what is attached.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 06:13:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-the-average-size-of-size-list-text-in-Direct/m-p/3500567#M134211</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-10-27T06:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the average size of size list text in Direct Query mode</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-the-average-size-of-size-list-text-in-Direct/m-p/3500838#M134229</link>
      <description>&lt;P&gt;The&amp;nbsp;Table.SplitColumn is not supported in direct query mode.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 08:21:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-the-average-size-of-size-list-text-in-Direct/m-p/3500838#M134229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-27T08:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the average size of size list text in Direct Query mode</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-the-average-size-of-size-list-text-in-Direct/m-p/3506189#M134500</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can create a calculated column as below to get it, please find the details in the attachment.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Average width = 
VAR _replace1 =
    SUBSTITUTE ( 'Table'[size_list], " ", "|" )
VAR SplitBySpace =
    PATHLENGTH ( _replace1 )
VAR _replace2 =
    SUBSTITUTE ( _replace1, "x", "|" )
VAR SplitBySpace2 =
    PATHLENGTH ( _replace2 )
VAR Mylen =
    LEN ( _replace2 )
VAR mytable =
    ADDCOLUMNS (
        GENERATESERIES ( 1, SplitBySpace2 ),
        "mylist", VALUE ( PATHITEM ( _replace2, [Value] ) )
    )
VAR Result =
    DIVIDE (
        SUMX ( FILTER ( mytable, MOD ( [Value], 2 ) = 1 ), [mylist] ),
        SplitBySpace,
        0
    )
RETURN
    Result&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 03:27:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-the-average-size-of-size-list-text-in-Direct/m-p/3506189#M134500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-31T03:27:10Z</dc:date>
    </item>
  </channel>
</rss>

