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
Anonymous
Not applicable

excluding one column in sumx

In the below table I want the overall minutes to be always considered as 600 for each row. I wrote the dax for overall minutes as this:

Overall Minutes = SUMX ( SUMMARIZE (Table, Table[date_start], Table[NodeId] ), CALCULATE ( count ( Table[hour_start] )*60 ) )
But it is still grouped by people count.
Untitled.jpg
2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Thanks. It helped a lot. I changed it to 

Overall Minutes =
CALCULATE (
SUMX (
SUMMARIZE ( table, table[date_start], table[NodeId] ),
CALCULATE ( DISTINCTCOUNT ( table[hour_start] ) * 60 )
),
ALLSELECTED (table[avg_peoplecount])
)
Because I wanted the grouping only ignores the avg_peoplecount but considers a new group per different dates and IDs. It worked correctly in the case of selecting 2 rooms but if I select two dates the overall minutes is 1200 while in the below example, it should be 600:Untitled.jpg
 

View solution in original post

@Anonymous 
Please try

Overall Minutes =
CALCULATE (
    SUMX (
        VALUES ( table[NodeId] ),
        CALCULATE ( DISTINCTCOUNT ( table[hour_start] ) * 60 )
    ),
    ALLSELECTED ( table[avg_peoplecount] )
)

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Thanks. It helped a lot. I changed it to 

Overall Minutes =
CALCULATE (
SUMX (
SUMMARIZE ( table, table[date_start], table[NodeId] ),
CALCULATE ( DISTINCTCOUNT ( table[hour_start] ) * 60 )
),
ALLSELECTED (table[avg_peoplecount])
)
Because I wanted the grouping only ignores the avg_peoplecount but considers a new group per different dates and IDs. It worked correctly in the case of selecting 2 rooms but if I select two dates the overall minutes is 1200 while in the below example, it should be 600:Untitled.jpg
 
Anonymous
Not applicable

Thanks a lot

@Anonymous 
Please try

Overall Minutes =
CALCULATE (
    SUMX (
        VALUES ( table[NodeId] ),
        CALCULATE ( DISTINCTCOUNT ( table[hour_start] ) * 60 )
    ),
    ALLSELECTED ( table[avg_peoplecount] )
)
tamerj1
Super User
Super User

Hi @Anonymous 

please try

Overall Minutes =
CALCULATE (
SUMX (
SUMMARIZE ( 'Table', 'Table'[date_start], 'Table'[NodeId] ),
CALCULATE ( COUNT ( 'Table'[hour_start] ) * 60 )
),
ALLSELECTED ()
)

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.

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.