Forum Discussion
How to load data in a table based on Max date for the first time
- 6 years ago
Hi d_sandip59 ,
Based on your previously measure, you can create a new table to extract date first:
Table = DISTINCT('EDG_COUNT_STATUS'[Date])Then try to create this measure:
Date filter = VAR _date = SELECTEDVALUE ( EDG_COUNT_STATUS[Date] ) RETURN IF ( NOT ( ISFILTERED ( 'Table'[Date] ) ), [MaxDateFilter], IF ( _date IN FILTERS ( 'Table'[Date] ), 1, 0 ) )You can put this measure in the visual filter of table to solve this case:
default date valueafter choosing date manually
Here is the demo, please try it:
Best Regards,
Yingjie LiIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
There are a few ways. Create your calendar table till the max date. And the filter for day .
Create a filter of yes and no in the calendar table based on max date of data and use that filter
Or create a measure like this
Measure =
var _min = maxx(Table,table[date])
return
calculate(count(Table[ID]), filter(table,table[Due_dates]=_max))
Refer
Hi,
I am working on the issue and have create a calculated column on the below dax:
MaxDateFilter =
var vMaxLoadDate = CALCULATE ( MAX ( EDG_COUNT_STATUS[Date] ), ALL ( 'EDG_COUNT_STATUS' ) ))
return IF( MIN(EDG_COUNT_STATUS[Date]) = vMaxLoadDate ,1,0)
and make MaxDateFilter =1 only.
but doing that it only loads data based on max date only at the table. But now if I choose different date from the filter it does not load data at the table based on the selected date.
So any suggestion on that?
- v-yingjl6 years ago
Community Support
Hi d_sandip59 ,
Based on your previously measure, you can create a new table to extract date first:
Table = DISTINCT('EDG_COUNT_STATUS'[Date])Then try to create this measure:
Date filter = VAR _date = SELECTEDVALUE ( EDG_COUNT_STATUS[Date] ) RETURN IF ( NOT ( ISFILTERED ( 'Table'[Date] ) ), [MaxDateFilter], IF ( _date IN FILTERS ( 'Table'[Date] ), 1, 0 ) )You can put this measure in the visual filter of table to solve this case:
default date valueafter choosing date manually
Here is the demo, please try it:
Best Regards,
Yingjie LiIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
- d_sandip596 years ago
Helper I
Hi,
Thank you very much for your help. It really wroks.
Thanks,
Sandip
- v-yingjl6 years ago
Community Support
Hi,
My pleasure🙂
Best Regards,
Yingjie Li