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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
AllanBerces
Post Prodigy
Post Prodigy

Daily Sum

Hi Good day,

Can anyone help me on how can i achieved my desired output. I need the sum of Daily Plan regardless of location. The Total Plan/day is the sum of Plan Hrs per planDate.

 

AllanBerces_0-1742282505874.png

DESIRED OUTPUT

AllanBerces_1-1742282557858.png

Thank you

1 ACCEPTED SOLUTION
Khushidesai0109
Super User
Super User

Hii @AllanBerces 
if you need it your way this can be done

Total Plan/day =
VAR TotalPerDay =
CALCULATE(
SUM('YourTable'[Plan Hrs]),
ALLEXCEPT('YourTable', 'YourTable'[PlanDate])
)

VAR FirstOccurrenceCheck =
RANKX(
FILTER('YourTable', 'YourTable'[PlanDate] = EARLIER('YourTable'[PlanDate])),
'YourTable'[Plan Hrs],
,
ASC,
DENSE
)

RETURN
IF(FirstOccurrenceCheck = 1, TotalPerDay, BLANK())



But the main thing to do it to create measure as it is more appropriate 
Total Plan/day =
CALCULATE(
SUM('YourTable'[Plan Hrs]),
ALLEXCEPT('YourTable', 'YourTable'[PlanDate])
)
Did I answer your question? Mark my post as a solution!
I'd appreciate the kuddos as well

Proud to be a Super User!!

View solution in original post

8 REPLIES 8
Khushidesai0109
Super User
Super User

Hii @AllanBerces 
if you need it your way this can be done

Total Plan/day =
VAR TotalPerDay =
CALCULATE(
SUM('YourTable'[Plan Hrs]),
ALLEXCEPT('YourTable', 'YourTable'[PlanDate])
)

VAR FirstOccurrenceCheck =
RANKX(
FILTER('YourTable', 'YourTable'[PlanDate] = EARLIER('YourTable'[PlanDate])),
'YourTable'[Plan Hrs],
,
ASC,
DENSE
)

RETURN
IF(FirstOccurrenceCheck = 1, TotalPerDay, BLANK())



But the main thing to do it to create measure as it is more appropriate 
Total Plan/day =
CALCULATE(
SUM('YourTable'[Plan Hrs]),
ALLEXCEPT('YourTable', 'YourTable'[PlanDate])
)
Did I answer your question? Mark my post as a solution!
I'd appreciate the kuddos as well

Proud to be a Super User!!

Hi @Khushidesai0109 thank you very much for the reply, working good.

MattiaFratello
Super User
Super User

Hi @AllanBerces, please use the following:

Total Plan Day =
CALCULATE(
    SUM('Table (2)'[Plan Hrs]),
    ALLEXCEPT('Table (2)', 'Table (2)'[PlanDate])
)
 
MattiaFratello_0-1742285701346.png

 

ryan_mayu
Super User
Super User

@AllanBerces 

you can try this

 

Column = CALCULATE(sum('Table (2)'[Plan Hrs]),ALLEXCEPT('Table (2)','Table (2)'[PlanDate]))
 
11.PNG
 
or create a measure
 
Measure = CALCULATE(sum('Table (2)'[Plan Hrs]),ALLEXCEPT('Table (2)','Table (2)'[PlanDate]))
 
12.PNG
 
 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @ryan_mayu @MattiaFratello thank you very much for the reply, is it possible the sum will appeared only once in each date, the same as my example for the calculated column.

Than you

that's not a good way to display data. you can create measure if you only want to see it once.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @ryan_mayu thank you very much, will check to change it to measure

AllanBerces_0-1742286122011.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors