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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
kingchad5
Helper I
Helper I

Sum data by Date

I am trying to total the duration of an appointment for a user by date.  In the below table, I want to see 5 rows one per date.  I am able to get totals, but it is for all users not per user.  Any thoughts?

 

PBI Grouping.jpg

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @kingchad5,

 

You can create a measure like below:

 

Measure = CALCULATE(SUM('Table1'[duration_hours]),FILTER(ALL('Table1'),'Table1'[full_name]=MAX('Table1'[full_name]) && 'Table1'[date_only]=MAX('Table1'[date_only])))

 

q1.PNG

 

Best Regards,
Qiuyun Yu

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

View solution in original post

1 REPLY 1
v-qiuyu-msft
Community Support
Community Support

Hi @kingchad5,

 

You can create a measure like below:

 

Measure = CALCULATE(SUM('Table1'[duration_hours]),FILTER(ALL('Table1'),'Table1'[full_name]=MAX('Table1'[full_name]) && 'Table1'[date_only]=MAX('Table1'[date_only])))

 

q1.PNG

 

Best Regards,
Qiuyun Yu

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

Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.