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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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