Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi I am working on a measure where the counts are dependant on the date range selected. There is another measure where I have to calculate the counts for the date and month from the date range slicer but year from a chosen Year filter. I am using a date dimension table for date range and year filters
Appreciate if anyone can help with this
Solved! Go to Solution.
Hi, @angeleyes_7181
Select Date Slicer, Click the format and select edit interactions. Click the None to disconnect the two slicers
You can learn more from the following link:
Change how visuals interact in a report - Power BI | Microsoft Learn
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous Thanks for your reply but the above doesn't work. I should be able to select a year irrespective of daterange and teh calculation should give me values for the selected year but for range for day and month from the date range filter
Hi, @angeleyes_7181
Select Date Slicer, Click the format and select edit interactions. Click the None to disconnect the two slicers
You can learn more from the following link:
Change how visuals interact in a report - Power BI | Microsoft Learn
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @angeleyes_7181
I create a sample table:
You can try the following DAX expression:
SamePeriodCount =
VAR SelectedYear = SELECTEDVALUE('Table'[Year])
VAR StartDate = MIN('Table'[Date])
VAR EndDate = MAX('Table'[Date])
VAR SamePeriodLastYear1 =
CALCULATE(
COUNT('Table'[ColumnToCount]),
FILTER(
ALL('Table'),
'Table'[Year] = SelectedYear &&
'Table'[Date] >= StartDate &&
'Table'[Date] <= EndDate
)
)
RETURN
SamePeriodLastYear1
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |