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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I think it's simple but need your help.
If I select a date in slicer then I have to show all dates of that month till selected date in slicer.
Solved! Go to Solution.
@Anonymous , Create an independent date table as suggested in
https://www.youtube.com/watch?v=duMSovyosXE
and try formula like this
Measure = var _1 = DATESMTD('Sales date'[Dates]) return CALCULATE(sum(Sales[Sales]), filter(Sales,Sales[Date] in _1))
@Anonymous , In case you select a date and want to display more than those dates refer to this approach
https://www.youtube.com/watch?v=duMSovyosXE
Your filter will me
Measure =
var _max = maxx(allselected(Date),Date[Date])
Var _min = eomonth(_max,-1)+1
return
calculate([Measure], filter(All(Date), Date[Date]>=_min && Date[Date]<=_max))
As we are using all you need to follow the approach on youtube.
Or use relative date slicer: https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range
ok, but i want only till selected date of that month.
it's not working. it gives error.
@Anonymous , Create an independent date table as suggested in
https://www.youtube.com/watch?v=duMSovyosXE
and try formula like this
Measure = var _1 = DATESMTD('Sales date'[Dates]) return CALCULATE(sum(Sales[Sales]), filter(Sales,Sales[Date] in _1))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 63 | |
| 55 | |
| 42 | |
| 41 | |
| 23 |
| User | Count |
|---|---|
| 167 | |
| 135 | |
| 120 | |
| 79 | |
| 53 |