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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
EsterBR
Helper II
Helper II

SUM Cost per day

Hi.

 

I have the following with different dates: 

EsterBR_0-1714429631523.png

I would like to sum the cost per day of the employee, but without taking into account the date. I would like that independently of the date selected the sum of the cost show only the cost per day, not the sum of the cost per day.

I would like to see this table:

EsterBR_1-1714430082610.png

And this table:

EsterBR_2-1714430112963.png

Instead of this that it is the sum of the cost per day of all the days per email.

EsterBR_3-1714430190491.pngEsterBR_4-1714430226438.png

How can I achieve this?

 

Thanks!

 

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

Hi @EsterBR

 

If you want to sum up by date and team per day, try it:

 

 

Measure = 
CALCULATE(
    SUM('Table'[Cost]), 
    FILTER(
        ALL('Table'), 
        'Table'[Date] = MAX('Table'[Date]) 
        && 
        'Table'[Team] = MAX('Table'[Team])
    )
)

 

 

 

If you're still having problems, provide some dummy data and the desired outcome. It is best presented in the form of a table.

 

Regards,

Nono Chen

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
v-nuoc-msft
Community Support
Community Support

Hi @EsterBR

 

If you want to sum up by date and team per day, try it:

 

 

Measure = 
CALCULATE(
    SUM('Table'[Cost]), 
    FILTER(
        ALL('Table'), 
        'Table'[Date] = MAX('Table'[Date]) 
        && 
        'Table'[Team] = MAX('Table'[Team])
    )
)

 

 

 

If you're still having problems, provide some dummy data and the desired outcome. It is best presented in the form of a table.

 

Regards,

Nono Chen

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

@v-nuoc-msft It works, Thanks a million!

ryan_mayu
Super User
Super User

@EsterBR 

not clear about the request. 

if you don't want to sum by day,  then do not add the date column to the visual

 

if this does not solve your problem, pls paste the sample data here(not the screenshot) and the expected output based on the sample data you provided.





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

Proud to be a Super User!




Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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