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
Anonymous
Not applicable

A table visual should skip few records based on date slicer

Hi Community, @amitchandak 

 

i am working on a power BI usecase, where i have table visual and there i want to show entire period(min(Sales Date) to max(Sales Date)) data, but the ask is when i select a date from slicer, it should show all the records for entire period(min(Sales Date) to max(Sales Date)) and skip 90 days data from the selected date from slicer. 

 

so i need after selected date all records and before date all records also but last 90 days data should be skipped from before portion.

Prabhat_2-1709807856526.png

consider this is a Sales_Date column 

 

 

thanks in advance

 

 

  

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @Anonymous ,

 

1. Create a new calculation table based on the date column of the original table.

Table =
DISTINCT('financials'[Date])

2. Create a measure to get dates other than the last 90 days.

Measure =
CALCULATE(sum('financials'[ Sales]),FILTER('financials','financials'[Date]>=MAX('Table'[Date]) || 'financials'[Date] < MAX('Table'[ Date]) - 90))

3. Use the date column in the calculation table as a slicer to create a visual.

vkaiyuemsft_0-1709867533510.png

 

You can view more information in the attached pbix file and modify the expression appropriately according to your own table. Another point worth noting is that the first 90 days may not include a complete three months, which can be modified appropriately with the help of the EOMONTH function.

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

Anonymous
Not applicable

Thanks for your response i also did the same 

Prabhat_0-1709870313218.png

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

1. Create a new calculation table based on the date column of the original table.

Table =
DISTINCT('financials'[Date])

2. Create a measure to get dates other than the last 90 days.

Measure =
CALCULATE(sum('financials'[ Sales]),FILTER('financials','financials'[Date]>=MAX('Table'[Date]) || 'financials'[Date] < MAX('Table'[ Date]) - 90))

3. Use the date column in the calculation table as a slicer to create a visual.

vkaiyuemsft_0-1709867533510.png

 

You can view more information in the attached pbix file and modify the expression appropriately according to your own table. Another point worth noting is that the first 90 days may not include a complete three months, which can be modified appropriately with the help of the EOMONTH function.

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

Anonymous
Not applicable

Thanks for your response i also did the same 

Prabhat_0-1709870313218.png

 

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