<?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: Measure aggregation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-aggregation/m-p/3652918#M141516</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="609442" data-lia-user-login="nickbeltran7" class="lia-mention lia-mention-user"&gt;nickbeltran7&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;If the solution works, can you accept it as a solution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Yongkang Hua&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2024 03:15:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-23T03:15:28Z</dc:date>
    <item>
      <title>Measure aggregation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-aggregation/m-p/3648731#M141316</link>
      <description>&lt;P&gt;I have the following measure in PowerBI: SPACES = (SUM('Properties'[Spaces]'). This measure aims to return the total number of spaces each Id has. Additionally, I have two other columns in two different tables. One column is called "Id" and the other column is "Month" in a time dimension table. When I pull a matrix with Id in rows, and Month in columns, and SPACES as values, it performs an aggregation rowwise and columnwise, which is what I want. However, when the aggregation is done rowwise at the asset level, the aggregation returns the SPACES in one month instead of the sum of SPACES each month. Note: Even though each month has the same number of spaces, I still want it to sum up the spaces of the twelve months. I am attaching an image of the matrix so you can understand me better. For example, for ID 302, I want the total to be 1,500, not 125. If anyone could provide any sort of guidance on this, I would appreciate it.&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 17:09:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-aggregation/m-p/3648731#M141316</guid>
      <dc:creator>nickbeltran7</dc:creator>
      <dc:date>2024-01-19T17:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Measure aggregation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-aggregation/m-p/3648773#M141318</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="609442" data-lia-user-login="nickbeltran7" class="lia-mention lia-mention-user"&gt;nickbeltran7&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Not sure how you have set up your model, please share an image of your model.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 17:29:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-aggregation/m-p/3648773#M141318</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2024-01-19T17:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Measure aggregation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-aggregation/m-p/3651127#M141442</link>
      <description>&lt;P&gt;Hi, @&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.fabric.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F609442&amp;amp;data=05%7C02%7Cv-yohua%40microsoft.com%7Cc9d7aacb6d9b4f9e64dc08dc1b21d138%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638415079338627470%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=X%2BEFY%2F%2BWoAfDMNc3%2Bq06lwIyySaTMTTCEmpuHQvbkko%3D&amp;amp;reserved=0" target="_blank"&gt;nickbeltran7&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Based on the information you gave, I have created two tables&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;Create a New Measure named SPACE.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to use your measure and follow your way, and then here's my idea: create another measure, create a virtual table in it, create a virtual table with the id and Month columns using the Cartesian product, and add a new column to this virtual table with [SPACE] as the value. SUMX is then used to calculate the sum of each row. The DAX expression is as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure =&lt;/P&gt;
&lt;P&gt;VAR a = ADDCOLUMNS(CROSSJOIN(VALUES('Table'[ID]),VALUES('Properties'[Month])),"Me",[SPACE])&lt;/P&gt;
&lt;P&gt;RETURN&lt;/P&gt;
&lt;P&gt;SUMX(FILTER(a,[ID] in VALUES('Table'[ID])&amp;amp;&amp;amp;[Month] IN VALUES('Properties'[Month])),[Me])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's my rendering:&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;I hope my ideas can help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-yohua%40microsoft.com%7Cc9d7aacb6d9b4f9e64dc08dc1b21d138%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638415079338636390%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=vgLzu8%2Bx9g3jFe010EWyB7KUpBPOf5HDHhNROenH%2Fks%3D&amp;amp;reserved=0" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Yongkang Hua&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 08:27:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-aggregation/m-p/3651127#M141442</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-22T08:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Measure aggregation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-aggregation/m-p/3652043#M141482</link>
      <description>&lt;P&gt;Indeed It did work. Thank you so much!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 15:45:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-aggregation/m-p/3652043#M141482</guid>
      <dc:creator>nickbeltran7</dc:creator>
      <dc:date>2024-01-22T15:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Measure aggregation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-aggregation/m-p/3652918#M141516</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="609442" data-lia-user-login="nickbeltran7" class="lia-mention lia-mention-user"&gt;nickbeltran7&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;If the solution works, can you accept it as a solution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Yongkang Hua&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 03:15:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-aggregation/m-p/3652918#M141516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-23T03:15:28Z</dc:date>
    </item>
  </channel>
</rss>

