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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
krishb1414
Helper III
Helper III

Sum of values of same date

Hi Everyone,

 

I need to do sum of count column and result will be shown as final column.

If there is any 2 same dates then count column will do sum else returns count column value.

Can anyone help ?

krishb1414_0-1691411796947.png

 

2 ACCEPTED SOLUTIONS
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

try this:

 

Column = CALCULATE(sum('Table'[count]),ALLEXCEPT('Table','Table'[Date]))
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

View solution in original post

Anonymous
Not applicable

Hi @krishb1414 ,

 

You could create a calculated column.

final = CALCULATE(SUM('Table'[count]),FILTER('Table',[Date]=EARLIER('Table'[Date])))

vstephenmsft_0-1691549274226.png

 

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @krishb1414 ,

 

You could create a calculated column.

final = CALCULATE(SUM('Table'[count]),FILTER('Table',[Date]=EARLIER('Table'[Date])))

vstephenmsft_0-1691549274226.png

 

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

try this:

 

Column = CALCULATE(sum('Table'[count]),ALLEXCEPT('Table','Table'[Date]))
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
AmiraBedh
Super User
Super User

Based on your dataset :

 

DateTable =
DATATABLE (
"Date", DATETIME,
"count", DOUBLE,
{
{ "01/08/2023", 0.5 },
{ "01/08/2023", 0.5 },
{ "02/08/2023", 0.5 },
{ "02/08/2023", 0.5 },
{ "03/08/2023", 0.5 },
{ "04/08/2023", 0.5 },
{ "04/08/2023", 0.5 }
}
)

Create a summarized table like below : 

SummarizedTable =
    SUMMARIZE (
        DateTable,
        DateTable[Date],
        "Final", IF(COUNTROWS(DateTable) > 1, SUM(DateTable[count]), MIN(DateTable[count]))
    )

Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors