<?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: Power Bi Challenge - Round 2 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3965134#M153809</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;,&amp;nbsp;just FYI, your Measure 5 is a bit off. I'd guess some off-by-one bug somewhere.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I'm attaching a pbix that has the data baked in (rather than referencing an Excel file) in case you or others want to tinker with the source data. I used my &lt;A href="https://github.com/OscarValerock/PowerQueryFunctions/blob/main/Functions/Table/ToM.pq" target="_self"&gt;custom Table.ToM function&lt;/A&gt; to produce this (and discovered I hadn't accounted for column names that need to be escaped with a #" " wrapper, so I'll need to update my function to handle that).&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2024 20:07:42 GMT</pubDate>
    <dc:creator>AlexisOlson</dc:creator>
    <dc:date>2024-05-31T20:07:42Z</dc:date>
    <item>
      <title>Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3958550#M153620</link>
      <description>&lt;P&gt;Hello Community Champions!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;This is definitely not a common requirement but it is a real one. People working in the industrial sectors would probably encounter similar situations.&amp;nbsp;Engineering companies who design Central Monitoring Systems or Building Management Systems usually design the shape of the output data in a way that makes it easy to handle with Excel. However, today more and more businesses are shifting to Power Bi. Industrial firms are no exception specially that they’re having probably more concerns about their data security.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enough of introduction.. the challenge this time is about handling aggregations in horizontally expanded tables. Tables that contain huge number of value columns. In our case the CMS is recording a temperature measurement every 10 minutes accumulating 144 columns in a single row every day.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Power Query experts do not get excited.. The table, which is supposed to be retrieved via a &lt;STRONG&gt;Live Connection&lt;/STRONG&gt; due to data control measures, contains a row for each temperature sensor each day for the current year 2024. Everyday one more row is added to each sensor. The 144 columns contains the measurement of the temperature recorded every 10 minutes. This daily variation in the temperature is important, however this is not our problem for today’s challenge.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today we are interested in Daily Averages. The requirement is simple&lt;STRONG&gt;: Create a line chart of the average daily temperature against [Date] in the x-axis.&lt;/STRONG&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;Attached is the sample data file.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342" target="_blank" rel="noopener"&gt;@lbendlin&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313" target="_blank" rel="noopener"&gt;@Greg_Deckler&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/291628" target="_blank" rel="noopener"&gt;@Jihwan_Kim&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/226664" target="_blank" rel="noopener"&gt;@sjoerdvn&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6799" target="_blank" rel="noopener"&gt;@OwenAuger&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/608865" target="_blank" rel="noopener"&gt;@DataNinja777&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/219243" target="_blank" rel="noopener"&gt;@quantumudit&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/474658" target="_blank" rel="noopener"&gt;@ThxAlot&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/585150" target="_blank" rel="noopener"&gt;@johnbasha33&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/569583" target="_blank" rel="noopener"&gt;@Dangar332&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/343431" target="_blank" rel="noopener"&gt;@ValtteriN&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/236628" target="_blank" rel="noopener"&gt;@AntrikshSharma&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/39298" target="_blank" rel="noopener"&gt;@AlexisOlson&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/578180" target="_blank" rel="noopener"&gt;@Martin_D&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 16:16:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3958550#M153620</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-05-29T16:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3958644#M153625</link>
      <description>&lt;P&gt;&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;&amp;nbsp;So, to be clear, we are not supposed to transform the table in any way with Power Query? At first glance, it looks like MC Aggregations.&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Multi-Column-Aggregations-MC-Aggregations/m-p/391698#M129" target="_blank"&gt;Multi-Column Aggregations (MC Aggregations) - Microsoft Fabric Community&lt;/A&gt;&amp;nbsp;or maybe DAX Unpivot.&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/DAX-Unpivot/m-p/574832#M256" target="_blank"&gt;DAX Unpivot - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 17:01:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3958644#M153625</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-05-29T17:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3958699#M153627</link>
      <description>&lt;P&gt;&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;&amp;nbsp;Here's another DAX approach that seems better than the other two I listed:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
    VAR __Text = SUBSTITUTE( TOCSV('T_MEASURES',,,0), ",", "|" )
    VAR __Table = 
        ADDCOLUMNS(
            GENERATESERIES(3, 144, 1),
            "__Value", PATHITEM( __Text, [Value]) + 0
        )
    VAR __Result = AVERAGEX( __Table, [__Value] )
RETURN
    __Result&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 29 May 2024 17:30:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3958699#M153627</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-05-29T17:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3958746#M153629</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This one looks fantastic! &lt;span class="lia-unicode-emoji" title=":smiling_face_with_heart_eyes:"&gt;😍&lt;/span&gt; I would like to see it working in the chart. Have you tried it? Otherwise, I'll do tomorrow morning.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 17:55:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3958746#M153629</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-05-29T17:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3958756#M153630</link>
      <description>&lt;P&gt;&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;&amp;nbsp;I did try it and it seems to work great. Maybe a tad slow I suppose. I'll attach PBIX below signature.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 18:00:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3958756#M153630</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-05-29T18:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3958759#M153631</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think your other solution makes more sense. To unpivot 144 columns manually using DAX is not expected to be a pleasant experience. Unless you insist to proof the opposite and produce the required DAX over the provided sample data &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 18:03:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3958759#M153631</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-05-29T18:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3958774#M153632</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please allow until tomorrow morning to check the sample file. I'm about to jump to my bed. I'm pretty sure it does satisfy the challenge requirement in full. Yet I have some comments. Will get back to you soon. Have a great day!&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 18:10:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3958774#M153632</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-05-29T18:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3958795#M153633</link>
      <description>&lt;P&gt;&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;&amp;nbsp;Sounds good, minor tweak with PBIX attached again. I have to have the counter go up to 146, not 144. Duh.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
    VAR __Text = SUBSTITUTE( TOCSV('T_MEASURES',,,0), ",", "|" )
    VAR __Table = 
        ADDCOLUMNS(
            GENERATESERIES(3, 146, 1),
            "__Value", PATHITEM( __Text, [Value]) + 0
        )
    VAR __Result = AVERAGEX( __Table, [__Value] )
RETURN
    __Result&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 29 May 2024 18:25:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3958795#M153633</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-05-29T18:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3960196#M153668</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like you are the only one who has definitely hit the point by utilizing TOCSV to handle this situation. Your genius solution deserves, with no doubt, to be marked as the accepted solution for this challenge.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I’m not going to make it easy for you &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;. Your solution works like magic in your file, but seems to have a little trouble in my file. Looks like someone has changed the order of the columns or someone has added another attribute column like “System ID”, “Sensor Location” or just “Row ID”. Not sure who did that&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 08:07:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3960196#M153668</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-05-30T08:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3961418#M153693</link>
      <description>&lt;P&gt;&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;&amp;nbsp;Yeah, the order of the columns is important or at least you need to know the order in terms of which column goes where. Would need to know specifics of your file to come up with a specific solution but will try giving a general solution a shot. But, for example, if you just added an additional column of information to the "front" then you could change your GENERATESERIES from 3 to 146 to 4 to 147. I have some ideas on a general "can't fail" solution but need to test it out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 13:59:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3961418#M153693</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-05-30T13:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3961458#M153696</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;True, but I was hoping not to have to change the code. Does that sound greedy? Cause I am greedy &lt;span class="lia-unicode-emoji" title=":money_mouth_face:"&gt;🤑&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 14:18:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3961458#M153696</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-05-30T14:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3961728#M153712</link>
      <description>&lt;P&gt;&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;&amp;nbsp;Yeah, the problem is that there isn't a SELECTCOLUMNSEXCEPT function that would select all the columns except those that you specify. If you had that function, even still you would have to modify the code if you add an additional column. The only way to achieve a no code revisions would be if you hard coded all of the desired columns into a SELECTCOLUMNS statement or if you could come up with a way to SELECTCOLUMNSIN function where you could pass a table and if the column name appeared in a row value then it would be selected otherwise not. It is possible to create your time table, one is included in the PBIX but I couldn't pull off the last piece of it where I used that as selection criteria for columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I came up with a couple additional approaches to lessen the burden on modifying the code. PBIX is attached as well. Also, these approaches seem to make the code more stable across charts types in my testing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This one abuses the PATH functions even more and uses SUBSTITUTE to find the 2nd comma and replace it. All you need to do then is if you add an additional column to the front then you modify the instance of the comma you are replacing. Note that this version is limited to when you will only ever have a single row of data that you are averaging.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 = 
    VAR __Text = SUBSTITUTE( TOCSV( 'T_MEASURES', , ",", 1 ), UNICHAR(10), "|" )
    VAR __1 = PATHITEM( __Text, 1 )
    VAR __2 = PATHITEM( __Text, 2 )
    VAR __3 = SUBSTITUTE( __2, ",", "|", 2 )
    VAR __4 = PATHITEM( __3, 2 )
    VAR __Path = SUBSTITUTE( __4, ",", "|" )
    VAR __Table = 
        ADDCOLUMNS(
            GENERATESERIES(1, 144, 1),
            "__Value", PATHITEM( __Path, [Value]) + 0
        )
    VAR __Result = AVERAGEX( __Table, [__Value] )
RETURN
    __Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This version attempts to ensure that all "pre" columns are moved to the end prior to grabbing the data. So, if you add a "pre" column, you will need to add an additional DISTINCT and correpsonding SUBSTITUTEWITHINDEX. The index is added to the end of the table so once this is done you can just grab items 1 - 144 every time. I tried multiple ways of trying to eliminate multiple columns at a time using this approach but the function refused to cooperate.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 3 = 
    VAR __Table = 'T_MEASURES'
    VAR __Sensors = DISTINCT('T_MEASURES'[Sensor Tag])
    VAR __Dates = DISTINCT('T_MEASURES'[Date])
    VAR __Table1 = SUBSTITUTEWITHINDEX( __Table, "Index", __Sensors, [Sensor Tag], ASC)
    VAR __Table2 = SUBSTITUTEWITHINDEX( __Table1, "Index1", __Dates, [Date], ASC)
    VAR __Text = SUBSTITUTE( TOCSV(__Table2,,,0), ",", "|" )
    VAR __Table3 = 
        ADDCOLUMNS(
            GENERATESERIES(1, 144, 1),
            "__Value", PATHITEM( __Text, [Value]) + 0
        )
    VAR __Result = AVERAGEX( __Table3, [__Value] )
RETURN
    __Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 15:59:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3961728#M153712</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-05-30T15:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3961831#M153718</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have enough words to describe my happiness while reading this. I really didn't expect to learn something out of this challenge but indeed you you are one of best teachers I have learned from. The way you approach the problem made me speachless. That opened my eye to many ideas that can realize new methods of solving problems. I realized that I still have so much to learn.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;You are right, at some point you have to hardcode something. True that the column order might change and true that more information columns can be added but tye number of value columns and their &lt;STRONG&gt;NAMES&lt;/STRONG&gt; remain unchanged. TOCSV ofers more than the values of the columns.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 16:38:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3961831#M153718</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-05-30T16:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3961859#M153719</link>
      <description>&lt;P&gt;&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;&amp;nbsp;Hey, here's a version that doesn't require hardcoding and you can theoretically add as many pre-columns as you want. Basically Measure 2 but with a dynamic finding of the number of commas before the first value column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 4 = 
    VAR __Text = SUBSTITUTE( TOCSV( 'T_MEASURES', , ",", 1 ), UNICHAR(10), "|" )
    VAR __1 = PATHITEM( __Text, 1 )
    VAR __FirstColon = FIND(":", __1)
    VAR __Left = LEFT( __1, __FirstColon )
    VAR __Commas = LEN( __Left ) - LEN( SUBSTITUTE( __Left, ",", "" ) )
    VAR __2 = PATHITEM( __Text, 2 )
    VAR __3 = SUBSTITUTE( __2, ",", "|", __Commas )
    VAR __4 = PATHITEM( __3, 2 )
    VAR __Path = SUBSTITUTE( __4, ",", "|" )
    VAR __Table = 
        ADDCOLUMNS(
            GENERATESERIES(1, 144, 1),
            "__Value", PATHITEM( __Path, [Value]) + 0
        )
    VAR __Result = AVERAGEX( __Table, [__Value] )
RETURN
    __Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 16:46:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3961859#M153719</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-05-30T16:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3962086#M153730</link>
      <description>&lt;P&gt;&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;&amp;nbsp;OK, one "final" version. This one *should* work with multiple rows of sensor data on the same day and doesn't assume basically anything in terms of how many columns of data, just that the first column of data that the name includes a ":" and that after that the data columns are sequential with no non-data columns mixed in.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have the original data file so I can't actually test it with multiple data on the same day (although that doesn't make sense in this scenario it might make sense in other similar circumstances or scenarios so I wanted to try doing it).&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 5 = 
    // Deal with the header to figure out what columns need to be removed
    VAR __TableWHeaders = SUBSTITUTE( TOCSV( 'T_MEASURES', , ",", 1 ), UNICHAR(10), "|" ) // TOCSV with Headers
    VAR __Headers = PATHITEM( __TableWHeaders, 1 ) //headers
    VAR __FirstColon = FIND(":", __Headers) // find the first colon, which should be the first column of data
    VAR __Left = LEFT( __Headers, __FirstColon ) // grab everything to the left of the first colon
    VAR __Commas = LEN( __Left ) - LEN( SUBSTITUTE( __Left, ",", "" ) ) // figure out how many commas (columns) are in the "pre-columns" before the data

    // Now deal with the data which might have multiple rows
    VAR __TableWOHeaders = SUBSTITUTE( TOCSV( 'T_MEASURES', , ",", 0 ), UNICHAR(10), "|" ) // TOCSV without Headers
    VAR __Count = COUNTROWS('T_MEASURES') // number of rows in table
    VAR __Data = // Generate a table with a column that strips out the pre-columns
        ADDCOLUMNS(
            GENERATESERIES(1, __Count, 1),
            "__Data", 
                VAR __Text = PATHITEM( __TableWOHeaders, [Value])
                VAR __Path = SUBSTITUTE( __Text, ",", "|", __Commas )
                VAR __Result = PATHITEM( __Path, 2 )
            RETURN
                __Result
        )
    VAR __DataText = CONCATENATEX( __Data, [__Data], "|" ) // convert the table back into a text string with each row as a path item
    VAR __Path = SUBSTITUTE( __DataText, ",", "|" ) // convert all columns to path items
    VAR __DataColumns = LEN( __DataText) - LEN( SUBSTITUTE( __DataText, ",", "" ) ) // figure out how many columns of data we are dealing with

    VAR __Table = // Convert the path into a table
        ADDCOLUMNS(
            GENERATESERIES(1, __DataColumns, 1),
            "__Value", PATHITEM( __Path, [Value]) + 0
        )
    VAR __Result = AVERAGEX( __Table, [__Value] ) // run an aggregation against the table
RETURN
    __Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 19:39:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3962086#M153730</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-05-30T19:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3962934#M153745</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I cannot thank you enough for the great input that you have provided in this subject. you really did a fantastic job that made more than happy and enjoyed realing every single paragraph and every single line of code. I personally learned much more than expected. I hope others did/will do.&lt;BR /&gt;Here is my original solution of the probelm with the explanation&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Average Temperature = 
AVERAGEX (
    T_MEASURES,
    VAR T1 = CALCULATETABLE ( T_MEASURES )
    VAR String1 = TOCSV ( T1, 1, ",", TRUE )
    VAR Items1 = SUBSTITUTE ( String1, UNICHAR ( 10 ), "|" )
    VAR T2 = SELECTCOLUMNS ( { ( 1, 2 ) }, "@Headers", PATHITEM ( Items1, 1 ), "@Details", PATHITEM ( Items1, 2 ) )
    VAR T3 =
        GENERATE ( 
            T2, 
            VAR HeaderString = [@Headers]
            VAR HeaderItems = SUBSTITUTE ( HeaderString, ",", "|" )
            VAR DetailString = [@Details]
            VAR DetailItems = SUBSTITUTE ( DetailString, ",", "|" )
            VAR Length = PATHLENGTH ( HeaderItems )
            VAR T4 = GENERATESERIES ( 1, Length, 1 )
            RETURN
                FILTER ( 
                    SELECTCOLUMNS ( 
                        T4, 
                        "@Header", PATHITEM ( HeaderItems, [Value] ),
                        "@Detail", PATHITEM ( DetailItems, [Value] ) 
                    ),
                    CONTAINSSTRING ( [@Header], ":" )
                )
        )
    RETURN
        AVERAGEX ( T3, VALUE ( [@Detail] ) )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 05:30:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3962934#M153745</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-05-31T05:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3964442#M153779</link>
      <description>&lt;P&gt;&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;&amp;nbsp;Very cool, a lot of the same concepts and patterns! I need to review this solution in the file!&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 12:51:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3964442#M153779</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-05-31T12:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3965108#M153808</link>
      <description>&lt;P&gt;These text-parsing solutions are clever but really slow. These are the timings I got for just the 31 days of January 2024.&lt;BR /&gt;&lt;BR /&gt;&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; solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;'s [Measure 5] solution:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The hard-coded solution to this problem is super fast:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;Avg Temp = 
DIVIDE (
    SUMX (
        T,
        T[00:00] + T[00:10] + T[00:20] + T[00:30] + T[00:40] + T[00:50] +
        T[01:00] + T[01:10] + T[01:20] + T[01:30] + T[01:40] + T[01:50] +
        T[02:00] + T[02:10] + T[02:20] + T[02:30] + T[02:40] + T[02:50] +
        T[03:00] + T[03:10] + T[03:20] + T[03:30] + T[03:40] + T[03:50] +
        T[04:00] + T[04:10] + T[04:20] + T[04:30] + T[04:40] + T[04:50] +
        T[05:00] + T[05:10] + T[05:20] + T[05:30] + T[05:40] + T[05:50] +
        T[06:00] + T[06:10] + T[06:20] + T[06:30] + T[06:40] + T[06:50] +
        T[07:00] + T[07:10] + T[07:20] + T[07:30] + T[07:40] + T[07:50] +
        T[08:00] + T[08:10] + T[08:20] + T[08:30] + T[08:40] + T[08:50] +
        T[09:00] + T[09:10] + T[09:20] + T[09:30] + T[09:40] + T[09:50] +
        T[10:00] + T[10:10] + T[10:20] + T[10:30] + T[10:40] + T[10:50] +
        T[11:00] + T[11:10] + T[11:20] + T[11:30] + T[11:40] + T[11:50] +
        T[12:00] + T[12:10] + T[12:20] + T[12:30] + T[12:40] + T[12:50] +
        T[13:00] + T[13:10] + T[13:20] + T[13:30] + T[13:40] + T[13:50] +
        T[14:00] + T[14:10] + T[14:20] + T[14:30] + T[14:40] + T[14:50] +
        T[15:00] + T[15:10] + T[15:20] + T[15:30] + T[15:40] + T[15:50] +
        T[16:00] + T[16:10] + T[16:20] + T[16:30] + T[16:40] + T[16:50] +
        T[17:00] + T[17:10] + T[17:20] + T[17:30] + T[17:40] + T[17:50] +
        T[18:00] + T[18:10] + T[18:20] + T[18:30] + T[18:40] + T[18:50] +
        T[19:00] + T[19:10] + T[19:20] + T[19:30] + T[19:40] + T[19:50] +
        T[20:00] + T[20:10] + T[20:20] + T[20:30] + T[20:40] + T[20:50] +
        T[21:00] + T[21:10] + T[21:20] + T[21:30] + T[21:40] + T[21:50] +
        T[22:00] + T[22:10] + T[22:20] + T[22:30] + T[22:40] + T[22:50] +
        T[23:00] + T[23:10] + T[23:20] + T[23:30] + T[23:40] + T[23:50]
    ),
    144 * COUNTROWS ( T )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This doesn't work if you want a distinct count aggregation but SUM and MIN/MAX work just fine.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 19:44:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3965108#M153808</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2024-05-31T19:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3965134#M153809</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;,&amp;nbsp;just FYI, your Measure 5 is a bit off. I'd guess some off-by-one bug somewhere.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I'm attaching a pbix that has the data baked in (rather than referencing an Excel file) in case you or others want to tinker with the source data. I used my &lt;A href="https://github.com/OscarValerock/PowerQueryFunctions/blob/main/Functions/Table/ToM.pq" target="_self"&gt;custom Table.ToM function&lt;/A&gt; to produce this (and discovered I hadn't accounted for column names that need to be escaped with a #" " wrapper, so I'll need to update my function to handle that).&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 20:07:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3965134#M153809</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2024-05-31T20:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Challenge - Round 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3965173#M153810</link>
      <description>&lt;P&gt;The other obvious hard-coded solution (manual unpivoting -- shown below) works too. It has more overhead but performance is still acceptable. The overhead is largely fixed and performance is barely affected by changing from one month of data to five months of data, unlike the text-parsing solutions whose timing scales roughly linearly with the number of months of data selected and quickly become impractical for larger amounts of data.&lt;BR /&gt;&lt;BR /&gt;Testing twenty cold cache trials on the full set of data (still only 876 rows):&lt;BR /&gt;&lt;BR /&gt;My simple solution above:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A more general unpivot solution (below):&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&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;'s solution from above:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;Avg Temp (Unpivot) = 
VAR __Unpivot__ =
    UNION (
        SELECTCOLUMNS ( T, "@Time", "00:00", "@Temp", T[00:00] ),
        SELECTCOLUMNS ( T, "@Time", "00:10", "@Temp", T[00:10] ),
        SELECTCOLUMNS ( T, "@Time", "00:20", "@Temp", T[00:20] ),
        SELECTCOLUMNS ( T, "@Time", "00:30", "@Temp", T[00:30] ),
        SELECTCOLUMNS ( T, "@Time", "00:40", "@Temp", T[00:40] ),
        SELECTCOLUMNS ( T, "@Time", "00:50", "@Temp", T[00:50] ),
        SELECTCOLUMNS ( T, "@Time", "01:00", "@Temp", T[01:00] ),
        SELECTCOLUMNS ( T, "@Time", "01:10", "@Temp", T[01:10] ),
        SELECTCOLUMNS ( T, "@Time", "01:20", "@Temp", T[01:20] ),
        SELECTCOLUMNS ( T, "@Time", "01:30", "@Temp", T[01:30] ),
        SELECTCOLUMNS ( T, "@Time", "01:40", "@Temp", T[01:40] ),
        SELECTCOLUMNS ( T, "@Time", "01:50", "@Temp", T[01:50] ),
        SELECTCOLUMNS ( T, "@Time", "02:00", "@Temp", T[02:00] ),
        SELECTCOLUMNS ( T, "@Time", "02:10", "@Temp", T[02:10] ),
        SELECTCOLUMNS ( T, "@Time", "02:20", "@Temp", T[02:20] ),
        SELECTCOLUMNS ( T, "@Time", "02:30", "@Temp", T[02:30] ),
        SELECTCOLUMNS ( T, "@Time", "02:40", "@Temp", T[02:40] ),
        SELECTCOLUMNS ( T, "@Time", "02:50", "@Temp", T[02:50] ),
        SELECTCOLUMNS ( T, "@Time", "03:00", "@Temp", T[03:00] ),
        SELECTCOLUMNS ( T, "@Time", "03:10", "@Temp", T[03:10] ),
        SELECTCOLUMNS ( T, "@Time", "03:20", "@Temp", T[03:20] ),
        SELECTCOLUMNS ( T, "@Time", "03:30", "@Temp", T[03:30] ),
        SELECTCOLUMNS ( T, "@Time", "03:40", "@Temp", T[03:40] ),
        SELECTCOLUMNS ( T, "@Time", "03:50", "@Temp", T[03:50] ),
        SELECTCOLUMNS ( T, "@Time", "04:00", "@Temp", T[04:00] ),
        SELECTCOLUMNS ( T, "@Time", "04:10", "@Temp", T[04:10] ),
        SELECTCOLUMNS ( T, "@Time", "04:20", "@Temp", T[04:20] ),
        SELECTCOLUMNS ( T, "@Time", "04:30", "@Temp", T[04:30] ),
        SELECTCOLUMNS ( T, "@Time", "04:40", "@Temp", T[04:40] ),
        SELECTCOLUMNS ( T, "@Time", "04:50", "@Temp", T[04:50] ),
        SELECTCOLUMNS ( T, "@Time", "05:00", "@Temp", T[05:00] ),
        SELECTCOLUMNS ( T, "@Time", "05:10", "@Temp", T[05:10] ),
        SELECTCOLUMNS ( T, "@Time", "05:20", "@Temp", T[05:20] ),
        SELECTCOLUMNS ( T, "@Time", "05:30", "@Temp", T[05:30] ),
        SELECTCOLUMNS ( T, "@Time", "05:40", "@Temp", T[05:40] ),
        SELECTCOLUMNS ( T, "@Time", "05:50", "@Temp", T[05:50] ),
        SELECTCOLUMNS ( T, "@Time", "06:00", "@Temp", T[06:00] ),
        SELECTCOLUMNS ( T, "@Time", "06:10", "@Temp", T[06:10] ),
        SELECTCOLUMNS ( T, "@Time", "06:20", "@Temp", T[06:20] ),
        SELECTCOLUMNS ( T, "@Time", "06:30", "@Temp", T[06:30] ),
        SELECTCOLUMNS ( T, "@Time", "06:40", "@Temp", T[06:40] ),
        SELECTCOLUMNS ( T, "@Time", "06:50", "@Temp", T[06:50] ),
        SELECTCOLUMNS ( T, "@Time", "07:00", "@Temp", T[07:00] ),
        SELECTCOLUMNS ( T, "@Time", "07:10", "@Temp", T[07:10] ),
        SELECTCOLUMNS ( T, "@Time", "07:20", "@Temp", T[07:20] ),
        SELECTCOLUMNS ( T, "@Time", "07:30", "@Temp", T[07:30] ),
        SELECTCOLUMNS ( T, "@Time", "07:40", "@Temp", T[07:40] ),
        SELECTCOLUMNS ( T, "@Time", "07:50", "@Temp", T[07:50] ),
        SELECTCOLUMNS ( T, "@Time", "08:00", "@Temp", T[08:00] ),
        SELECTCOLUMNS ( T, "@Time", "08:10", "@Temp", T[08:10] ),
        SELECTCOLUMNS ( T, "@Time", "08:20", "@Temp", T[08:20] ),
        SELECTCOLUMNS ( T, "@Time", "08:30", "@Temp", T[08:30] ),
        SELECTCOLUMNS ( T, "@Time", "08:40", "@Temp", T[08:40] ),
        SELECTCOLUMNS ( T, "@Time", "08:50", "@Temp", T[08:50] ),
        SELECTCOLUMNS ( T, "@Time", "09:00", "@Temp", T[09:00] ),
        SELECTCOLUMNS ( T, "@Time", "09:10", "@Temp", T[09:10] ),
        SELECTCOLUMNS ( T, "@Time", "09:20", "@Temp", T[09:20] ),
        SELECTCOLUMNS ( T, "@Time", "09:30", "@Temp", T[09:30] ),
        SELECTCOLUMNS ( T, "@Time", "09:40", "@Temp", T[09:40] ),
        SELECTCOLUMNS ( T, "@Time", "09:50", "@Temp", T[09:50] ),
        SELECTCOLUMNS ( T, "@Time", "10:00", "@Temp", T[10:00] ),
        SELECTCOLUMNS ( T, "@Time", "10:10", "@Temp", T[10:10] ),
        SELECTCOLUMNS ( T, "@Time", "10:20", "@Temp", T[10:20] ),
        SELECTCOLUMNS ( T, "@Time", "10:30", "@Temp", T[10:30] ),
        SELECTCOLUMNS ( T, "@Time", "10:40", "@Temp", T[10:40] ),
        SELECTCOLUMNS ( T, "@Time", "10:50", "@Temp", T[10:50] ),
        SELECTCOLUMNS ( T, "@Time", "11:00", "@Temp", T[11:00] ),
        SELECTCOLUMNS ( T, "@Time", "11:10", "@Temp", T[11:10] ),
        SELECTCOLUMNS ( T, "@Time", "11:20", "@Temp", T[11:20] ),
        SELECTCOLUMNS ( T, "@Time", "11:30", "@Temp", T[11:30] ),
        SELECTCOLUMNS ( T, "@Time", "11:40", "@Temp", T[11:40] ),
        SELECTCOLUMNS ( T, "@Time", "11:50", "@Temp", T[11:50] ),
        SELECTCOLUMNS ( T, "@Time", "12:00", "@Temp", T[12:00] ),
        SELECTCOLUMNS ( T, "@Time", "12:10", "@Temp", T[12:10] ),
        SELECTCOLUMNS ( T, "@Time", "12:20", "@Temp", T[12:20] ),
        SELECTCOLUMNS ( T, "@Time", "12:30", "@Temp", T[12:30] ),
        SELECTCOLUMNS ( T, "@Time", "12:40", "@Temp", T[12:40] ),
        SELECTCOLUMNS ( T, "@Time", "12:50", "@Temp", T[12:50] ),
        SELECTCOLUMNS ( T, "@Time", "13:00", "@Temp", T[13:00] ),
        SELECTCOLUMNS ( T, "@Time", "13:10", "@Temp", T[13:10] ),
        SELECTCOLUMNS ( T, "@Time", "13:20", "@Temp", T[13:20] ),
        SELECTCOLUMNS ( T, "@Time", "13:30", "@Temp", T[13:30] ),
        SELECTCOLUMNS ( T, "@Time", "13:40", "@Temp", T[13:40] ),
        SELECTCOLUMNS ( T, "@Time", "13:50", "@Temp", T[13:50] ),
        SELECTCOLUMNS ( T, "@Time", "14:00", "@Temp", T[14:00] ),
        SELECTCOLUMNS ( T, "@Time", "14:10", "@Temp", T[14:10] ),
        SELECTCOLUMNS ( T, "@Time", "14:20", "@Temp", T[14:20] ),
        SELECTCOLUMNS ( T, "@Time", "14:30", "@Temp", T[14:30] ),
        SELECTCOLUMNS ( T, "@Time", "14:40", "@Temp", T[14:40] ),
        SELECTCOLUMNS ( T, "@Time", "14:50", "@Temp", T[14:50] ),
        SELECTCOLUMNS ( T, "@Time", "15:00", "@Temp", T[15:00] ),
        SELECTCOLUMNS ( T, "@Time", "15:10", "@Temp", T[15:10] ),
        SELECTCOLUMNS ( T, "@Time", "15:20", "@Temp", T[15:20] ),
        SELECTCOLUMNS ( T, "@Time", "15:30", "@Temp", T[15:30] ),
        SELECTCOLUMNS ( T, "@Time", "15:40", "@Temp", T[15:40] ),
        SELECTCOLUMNS ( T, "@Time", "15:50", "@Temp", T[15:50] ),
        SELECTCOLUMNS ( T, "@Time", "16:00", "@Temp", T[16:00] ),
        SELECTCOLUMNS ( T, "@Time", "16:10", "@Temp", T[16:10] ),
        SELECTCOLUMNS ( T, "@Time", "16:20", "@Temp", T[16:20] ),
        SELECTCOLUMNS ( T, "@Time", "16:30", "@Temp", T[16:30] ),
        SELECTCOLUMNS ( T, "@Time", "16:40", "@Temp", T[16:40] ),
        SELECTCOLUMNS ( T, "@Time", "16:50", "@Temp", T[16:50] ),
        SELECTCOLUMNS ( T, "@Time", "17:00", "@Temp", T[17:00] ),
        SELECTCOLUMNS ( T, "@Time", "17:10", "@Temp", T[17:10] ),
        SELECTCOLUMNS ( T, "@Time", "17:20", "@Temp", T[17:20] ),
        SELECTCOLUMNS ( T, "@Time", "17:30", "@Temp", T[17:30] ),
        SELECTCOLUMNS ( T, "@Time", "17:40", "@Temp", T[17:40] ),
        SELECTCOLUMNS ( T, "@Time", "17:50", "@Temp", T[17:50] ),
        SELECTCOLUMNS ( T, "@Time", "18:00", "@Temp", T[18:00] ),
        SELECTCOLUMNS ( T, "@Time", "18:10", "@Temp", T[18:10] ),
        SELECTCOLUMNS ( T, "@Time", "18:20", "@Temp", T[18:20] ),
        SELECTCOLUMNS ( T, "@Time", "18:30", "@Temp", T[18:30] ),
        SELECTCOLUMNS ( T, "@Time", "18:40", "@Temp", T[18:40] ),
        SELECTCOLUMNS ( T, "@Time", "18:50", "@Temp", T[18:50] ),
        SELECTCOLUMNS ( T, "@Time", "19:00", "@Temp", T[19:00] ),
        SELECTCOLUMNS ( T, "@Time", "19:10", "@Temp", T[19:10] ),
        SELECTCOLUMNS ( T, "@Time", "19:20", "@Temp", T[19:20] ),
        SELECTCOLUMNS ( T, "@Time", "19:30", "@Temp", T[19:30] ),
        SELECTCOLUMNS ( T, "@Time", "19:40", "@Temp", T[19:40] ),
        SELECTCOLUMNS ( T, "@Time", "19:50", "@Temp", T[19:50] ),
        SELECTCOLUMNS ( T, "@Time", "20:00", "@Temp", T[20:00] ),
        SELECTCOLUMNS ( T, "@Time", "20:10", "@Temp", T[20:10] ),
        SELECTCOLUMNS ( T, "@Time", "20:20", "@Temp", T[20:20] ),
        SELECTCOLUMNS ( T, "@Time", "20:30", "@Temp", T[20:30] ),
        SELECTCOLUMNS ( T, "@Time", "20:40", "@Temp", T[20:40] ),
        SELECTCOLUMNS ( T, "@Time", "20:50", "@Temp", T[20:50] ),
        SELECTCOLUMNS ( T, "@Time", "21:00", "@Temp", T[21:00] ),
        SELECTCOLUMNS ( T, "@Time", "21:10", "@Temp", T[21:10] ),
        SELECTCOLUMNS ( T, "@Time", "21:20", "@Temp", T[21:20] ),
        SELECTCOLUMNS ( T, "@Time", "21:30", "@Temp", T[21:30] ),
        SELECTCOLUMNS ( T, "@Time", "21:40", "@Temp", T[21:40] ),
        SELECTCOLUMNS ( T, "@Time", "21:50", "@Temp", T[21:50] ),
        SELECTCOLUMNS ( T, "@Time", "22:00", "@Temp", T[22:00] ),
        SELECTCOLUMNS ( T, "@Time", "22:10", "@Temp", T[22:10] ),
        SELECTCOLUMNS ( T, "@Time", "22:20", "@Temp", T[22:20] ),
        SELECTCOLUMNS ( T, "@Time", "22:30", "@Temp", T[22:30] ),
        SELECTCOLUMNS ( T, "@Time", "22:40", "@Temp", T[22:40] ),
        SELECTCOLUMNS ( T, "@Time", "22:50", "@Temp", T[22:50] ),
        SELECTCOLUMNS ( T, "@Time", "23:00", "@Temp", T[23:00] ),
        SELECTCOLUMNS ( T, "@Time", "23:10", "@Temp", T[23:10] ),
        SELECTCOLUMNS ( T, "@Time", "23:20", "@Temp", T[23:20] ),
        SELECTCOLUMNS ( T, "@Time", "23:30", "@Temp", T[23:30] ),
        SELECTCOLUMNS ( T, "@Time", "23:40", "@Temp", T[23:40] ),
        SELECTCOLUMNS ( T, "@Time", "23:50", "@Temp", T[23:50] )
    )
VAR __Result = AVERAGEX ( __Unpivot__, [@Temp] )
RETURN
    __Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 20:45:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-Bi-Challenge-Round-2/m-p/3965173#M153810</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2024-05-31T20:45:55Z</dc:date>
    </item>
  </channel>
</rss>

