Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.
I have two calendar slicers (with two calendar tables associated):
- One for general filtering
- Another to select a previous period to compare with.
I want that the general slicer to filter the comparator slicer: Doing that Min Date (minus one day) on general slicer would be max date on comparator slicer.
Something like this:
So, to do that I created a Measure (ShowDate ) that indicates that and I filtered the comparator slicer with that measure:
All is working fine until on the comparator slicer I select as last date the min date (minus one day) of the general one, the filter is not working well:
Max date posible is selected on the comparator slicer:
Otherwise is working well:
@Alejandro , this approach os using a measure based on other filter do not work well with range slicer
a measure like this can help, but work for a list or drop-down
filter date2 slicer using date 1
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = minx(allselected(Date1),Date1[Date])
return
calculate( count(Date2[Date]), filter('Date2', 'Date2'[Date] >=_min && 'Date2'[Date] <=_max))
check for non blank
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
77 | |
76 | |
69 | |
48 | |
40 |
User | Count |
---|---|
62 | |
41 | |
33 | |
30 | |
30 |