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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.