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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Kathir
Frequent Visitor

How to create a aggregated table with additional criteria?

Kathir_0-1704794038469.png   Kathir_1-1704794070624.png

 

How to create an aggregated table below based on the table on top? Time is ascending for the top table. Thanks 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Kathir,

You can use the summarize function to create a new calculated table to aggregate specific field values based on category fields:

Summaried =
SUMMARIZE (
    Table1,
    Table1[ID],
    Table1[Day],
    Table1[Venue],
    Table1[Zone],
    "Duration(sec)", SUM ( Table1[Duration(sec)] )
)

Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Kathir,

You can use the summarize function to create a new calculated table to aggregate specific field values based on category fields:

Summaried =
SUMMARIZE (
    Table1,
    Table1[ID],
    Table1[Day],
    Table1[Venue],
    Table1[Zone],
    "Duration(sec)", SUM ( Table1[Duration(sec)] )
)

Regards,

Xiaoxin Sheng

Kathir
Frequent Visitor

if you have noticed, refering to the top table, as long as the venue is same row 3 and row 4 (records which are adjacent), i have added 56 + 152 , the result table below shows 208

ah, now i see.

 

Do it in PowerQuery, like this: Grouping or Summarizing Rows in Power Query - BI Gorilla

lukiz84
Memorable Member
Memorable Member

can you be a little more specific?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.