Forum Discussion
Manar
8 years agoHelper II
Filter data using date range from slicer
Hi , I am trying to filter submissions count by a range of dates enterd in slicer (between) For example if a user enter a range of date the table should show the count of submissions for that r...
- 8 years ago
Hi Manar,
Based on my test, you could refer to below steps:
Sample data:
Create a measure:
Current_Submission =
var startdate= max(DimDate[Date])
var enddate = min(DimDate[Date]) Return
calculate(DISTINCTCOUNT(Submission[Number]),
Filter (ALL(Submission), Submission[Date]<= startdate&&Submission[Date]>= enddate))Now you could see the result:
You can also download the PBIX file to have a view.
Regards,
Daniel He
Anonymous
8 years agoNot applicable
Current_Submission = VAR startdate= MIN(DimDate[Date]) VAR enddate = MAX(DimDate[Date]) Return calculate(DISTINCTCOUNT(Submisions[Submission Number]), Filter (Submisions,Submisions[Submission Date]>= startdate &&
Submisions[Submission Date]<= enddate )
)
Try this.
Thanks
Raj