Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Sum hierarchy in column based on levels in column

Hi i have a table and i wanna created new column, where i have a sum of all value based on each subgroup based on column: [ORDER], [PARENT] [LEVEL] and [Project]. How can i create column using DAX or PowerQuery?
I dont want create MEASURE, i need column with values.

 

Anyone can help me ? I tired handling, sum hierarchy, but i dont have idea how to do this.

 

  

1 REPLY 1
v-cherch-msft
Employee
Employee

Hi @Anonymous

 

It seems you may create a calculated column with EARLIER Function.If it is not your case,could you explain more about your expected output?I cannot fully understand how to get the calculated column.It's always best to post your data in text/tabular format in addition to a screen capture.

Below is a simplified sample based on my guessing.

Column =
SUMX (
    FILTER (
        Table3,
        Table3[Project] = EARLIER ( Table3[Project] )
            && Table3[Level] = EARLIER ( Table3[Level] )
    ),
    Table3[Time]
)

1.png

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.