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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
zoubeyrB
Frequent Visitor

creating a filtered calculated table

Hello everyone,

In my report I have two tables : Date and Sales (not connected to each others).

I added a slicer based on Date[date] and I'm trying to create a calculated table showing only sales with dates former to the date selected from Date.

The following formula works :

 

 

FilteredTable = 
var summarized_ = SUMMARIZE(Sales,Sales[ID_Sale],Sales[ID_Client],
"FINAL_SALE_DATE",MAX(Sales[Sales_Date]))
var date_ = DATEVALUE("2024-01-01")

return filter(summarized_,[FINAL_SALE_DATE] <= date_)

 

 

 

But when I use the selected date I get an empty table :

 

 

FilteredTable = 
var summarized_ = SUMMARIZE(Sales,Sales[ID_Sale],Sales[ID_Client],
"FINAL_SALE_DATE",MAX(Sales[Sales_Date]))
var date_ = DATEVALUE(LASTDATE('DATE'[Date]))

return filter(summarized_,[FINAL_SALE_DATE] <= date_)

 

 

I'd appreciate your help on this issue 🙂


1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Calculated tables are only calculated during data refresh, they don't pay any attention to filters or slicers. If you want something to react dynamically you have to use a measure.

View solution in original post

2 REPLIES 2
zoubeyrB
Frequent Visitor

Thanks @johnt75 , I added a measure and filtered on it and it worked.

johnt75
Super User
Super User

Calculated tables are only calculated during data refresh, they don't pay any attention to filters or slicers. If you want something to react dynamically you have to use a measure.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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