- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 range of dates.
I created this formula, it works when I choose one date but not a range, any help
Current_Submission =
var startdate= max(DimDate[Date])
var enddate = min(DimDate[Date]) Return
calculate(DISTINCTCOUNT(
Submisions[Submission Number]),
Filter (Submisions, Submisions[Submission Date]>= startdate && Submisions[Submission Date] <= enddate ) )
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
Anonymous
| 06-28-2024 12:43 AM | ||
06-05-2024 10:41 PM | |||
11-05-2023 09:43 PM | |||
12-15-2023 10:07 AM | |||
11-06-2023 10:31 AM |
User | Count |
---|---|
86 | |
76 | |
52 | |
39 | |
35 |
User | Count |
---|---|
92 | |
67 | |
54 | |
52 | |
46 |