<?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: Pivoting a pivot table in Power BI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivoting-a-pivot-table-in-Power-BI/m-p/4125599#M163832</link>
    <description>&lt;P&gt;Figured out a solution:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SimpleWeeklyAvg1 =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Person]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Week]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"WeeklyAvgFrequencyPerPerson1"&lt;/SPAN&gt;&lt;SPAN&gt;, 'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[WeeklyAvgPricePerPerson]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;[WeeklyAvgFrequencyPerPerson1]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 29 Aug 2024 19:30:29 GMT</pubDate>
    <dc:creator>sathin2</dc:creator>
    <dc:date>2024-08-29T19:30:29Z</dc:date>
    <item>
      <title>Pivoting a pivot table in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivoting-a-pivot-table-in-Power-BI/m-p/4125452#M163825</link>
      <description>&lt;P&gt;I'm relatively new to Power BI. I'd like to plot the 'simple' average of "weekly average price weight by quantity" by week. The two steps in the example below are:&lt;/P&gt;&lt;P&gt;1. For each row the price is 'weighted' by the quantity and averaged for each (person, week)&lt;/P&gt;&lt;P&gt;2. These numbers are 'simple' averaged across each person to obtain the weekly average&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The raw data range is A1:E5. The desired output range is G10:H12. In Excel this is equivalent to pivoting on the pivot table, which I performed manually as shown below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to preprocess the data to obtain this result in Power BI?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: In addition to the above there are row-wise filters to be applied. The raw data, the pivot and the final weekly average price per unit should update based on the selected filters.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 17:33:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivoting-a-pivot-table-in-Power-BI/m-p/4125452#M163825</guid>
      <dc:creator>sathin2</dc:creator>
      <dc:date>2024-08-29T17:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pivoting a pivot table in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivoting-a-pivot-table-in-Power-BI/m-p/4125459#M163827</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="799130" data-lia-user-login="sathin2" class="lia-mention lia-mention-user"&gt;sathin2&lt;/a&gt;, try these measures below, and if you encounter any issues, let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a calculated column:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WeightedPrice = [Price] * [Quantity]&lt;/LI-CODE&gt;&lt;P&gt;Create a measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WeeklyAvgPricePerPerson = 
DIVIDE(
    SUM('Table'[WeightedPrice]),
    SUM('Table'[Quantity])
)&lt;/LI-CODE&gt;&lt;P&gt;Create another measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SimpleWeeklyAvg = 
AVERAGEX(
    VALUES('Table'[Person]),
    [WeeklyAvgPricePerPerson]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT face="verdana,geneva"&gt;&lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;Did I answer your question?&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;If so, please mark my post as the solution! &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="verdana,geneva"&gt;&lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;Your Kudos are much appreciated!&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;Proud to be a Solution Supplier!&lt;/STRONG&gt;&lt;/FONT&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 17:44:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivoting-a-pivot-table-in-Power-BI/m-p/4125459#M163827</guid>
      <dc:creator>ahadkarimi</dc:creator>
      <dc:date>2024-08-29T17:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pivoting a pivot table in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivoting-a-pivot-table-in-Power-BI/m-p/4125599#M163832</link>
      <description>&lt;P&gt;Figured out a solution:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SimpleWeeklyAvg1 =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Person]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Week]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"WeeklyAvgFrequencyPerPerson1"&lt;/SPAN&gt;&lt;SPAN&gt;, 'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[WeeklyAvgPricePerPerson]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;[WeeklyAvgFrequencyPerPerson1]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Aug 2024 19:30:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivoting-a-pivot-table-in-Power-BI/m-p/4125599#M163832</guid>
      <dc:creator>sathin2</dc:creator>
      <dc:date>2024-08-29T19:30:29Z</dc:date>
    </item>
  </channel>
</rss>

