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! Request now

Reply
PeteGordonAG
New Member

Date filter needed where sales data by year held in different tables

I have sales data held in separate tables by financial year - I had to split out the data as my server could not cope.

I have a date table which uses the date to return a Future, Today or Past value.

However all the previous year info is set in the past.

I therefore need to move the control date forward each day to show only the month to date info.

 

Can a filter be set so the Day and date is used only to filter on what values pull through to avoid the manual work.

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@PeteGordonAG , You need control to bring in data in Power Query or to default value in slicer 

 

Power query you can use local now -DateTime.LocalNow()

 

If you default slicer, you have to create a text column 

Is Today = if([Date]=TODAY(),"Today",[Date]&"")

 

and save slicer on today 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Jaywant-Thorat
Resolver I
Resolver I

Understanding the Scenario: You want Power BI to automatically show only Month-to-Date (MTD) values without manually adjusting a date every day, even though your sales data is split into multiple year-wise tables.
Solution: Create MTD measure

Sales MTD = CALCULATE(SUM('Sales'[Amount]),DATESMTD('Date'[Date]))

This automatically filters all tables, current year or past years, based on your Date table.

No need to adjust any "control date". Always updates daily.
Works even with separate yearly sales tables (as long as all relate to one Date table).

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Jaywant Thorat | MCT | Data Analytics Coach
Linkedin: https://www.linkedin.com/in/jaywantthorat/



View solution in original post

4 REPLIES 4
Jaywant-Thorat
Resolver I
Resolver I

Understanding the Scenario: You want Power BI to automatically show only Month-to-Date (MTD) values without manually adjusting a date every day, even though your sales data is split into multiple year-wise tables.
Solution: Create MTD measure

Sales MTD = CALCULATE(SUM('Sales'[Amount]),DATESMTD('Date'[Date]))

This automatically filters all tables, current year or past years, based on your Date table.

No need to adjust any "control date". Always updates daily.
Works even with separate yearly sales tables (as long as all relate to one Date table).

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Jaywant Thorat | MCT | Data Analytics Coach
Linkedin: https://www.linkedin.com/in/jaywantthorat/



Hi @PeteGordonAG ,

Thanks for reaching out to the Microsoft fabric community forum. 

 

I would also take a moment to thank @amitchandak   , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.

I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you .

 

 

Best Regards, 
Community Support Team  

Hi @PeteGordonAG ,

I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you .

 

 

Best Regards, 
Community Support Team 

amitchandak
Super User
Super User

@PeteGordonAG , You need control to bring in data in Power Query or to default value in slicer 

 

Power query you can use local now -DateTime.LocalNow()

 

If you default slicer, you have to create a text column 

Is Today = if([Date]=TODAY(),"Today",[Date]&"")

 

and save slicer on today 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors