Forum Discussion
Custom table is not working when filtering on date
- 1 year ago
Hi Jack00711, you don't need to build a calculated table for this case. Calculated table is refreshed once, when your semantic model is refreshed. Therefore, any further interaction with slicers won't change it.
If you already have a classic data model like this, the only thing you need to do is to apply a filter on "Date" column from "Calendar" table, it will filter the fact table accordingly.
Then you create DAX measure that will show you data for all fields selected before the current date, but when using data in slicer visual there is an easier way:
You can find sample pbix attached.
Good luck with your project 🙂
your google drive link requires a permission
danextian Apologies about that, here are the updated links :
Sample Data
Report
- Anonymous1 year agoNot applicable
Hi,
Thanks for the solutions grazitti_sapna , danextian ,Sergii24 , and Bibiano_Geraldo offered, and i want to offer some more informaiton for user to refer to.
hello Jack00711 , if you want to display the date before the date you selected, you need to remove the relationship between the tables. then create a measure.
Measure = CALCULATE(SUM(Tasks[Value]),FILTER(Tasks,Tasks[Date]<=MAX('Calendar'[Date])))Then create a table visual, put the measure and the data column of task table to the visual.
Put the date of calendar column to the slicer.
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.