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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Start date

Hello Team,

 

I need help to calculate sales with a specific start date.

 

I need something like that:

 

Sum(Append1[Sales])
 
I created a calendar.
 
My start date should be 01/06/2022 and the last date should be dynamic to today.
 
Any idea
 
1 ACCEPTED SOLUTION
selimovd
Super User
Super User

Hey @Anonymous ,

 

you can change the filter context with the CALCULATE function.

The following approach should work:

Sales since January 6 2022 =
CALCULATE (
    SUM ( Append1[Sales] ),
    'Date'[Date] >= dt"2022-01-06" && 'Date'[Date] <= TODAY ()
)

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
 

View solution in original post

1 REPLY 1
selimovd
Super User
Super User

Hey @Anonymous ,

 

you can change the filter context with the CALCULATE function.

The following approach should work:

Sales since January 6 2022 =
CALCULATE (
    SUM ( Append1[Sales] ),
    'Date'[Date] >= dt"2022-01-06" && 'Date'[Date] <= TODAY ()
)

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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