Forum Discussion
Filter data with selected from date to till date
Hi amitchandak
Thanks for your reply.
My requirement is I have 2 tables. One is having plan for this month till 31st dec. Second is actual produced till date.
Since my monthly calender for this month starting from 26th Nov 2022, I would like have MTD plan vs actual.
Current, I need to set my filter daily for plan only to from "After 26th to before today"
I wish this filter should only once in a month for starting date. rest should to automatic like till date should update day by day automatically.
Can you support ?
Can you please support? It would be appreciable if we find solution for my report. I am struggling with point for long time.
- Anonymous3 years agoNot applicable
Hi Karthik12,
Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
- Karthik123 years ago
Post Patron
Hi Anonymous
My sharing file with you in below link. I would like to filter this data from Selected start date to till today date. i,e from 26-11-2022 as selected date to till date 09-12-2022. Till date for tomorrow has to change automatically to 10-12-2022 and continues.
- Anonymous3 years agoNot applicable
HI Karthik12,
I can't access the file from share link, can you please fix this?
If you mean to achieve custom filter effect to your records, you can write a measure formula to extract the selection(create an unconnected table with date value as source of slicer) and compare with current date and today function to returns flag. Then you can use it on ‘visual level filter’ to filter records.
formula = VAR currDate = MAX ( Table[Date] ) VAR selected = MAX ( NewTable[Date] ) RETURN IF ( currDate >= selected && currDate <= TODAY (), "Y", "N" )Regards,
Xiaoxin Sheng