Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I have one calendar table joining to other tables. On my calendar table I have live data, and I would like to filter the table based on Slicer selection and create a column =
List.Max(#"DateTable"[Last Day of Selected Slicer Date]))
is this possible to call in the Min amd Max of Slicer in Power query or M query?
Thanks!
Solved! Go to Solution.
Hey, @NilR
In my opinion, you cannot use the selected Slicer value in the Power query, because the Power query can only transform data from the data source and has no link to the visuals created in the report. The selected Segmentation value can only affect the value of measures created in the report.
What's more, if you want to filter a table to Max(Date) selected in the calendar slicer, you can follow my steps and find out if it's useful:
Date = CALENDAR(DATE(2018,1,1),DATE(2020,12,31))
Sum of amount =
var _maxdate=MAX('Date'[Date])
return
CALCULATE(SUM(Sales[Amount]),FILTER('Sales',[Date]<=_maxdate ))
And I guess this is what you want.
You can download my test pbix file here
If this result is not what you want, you can publish some sample data (without sensitive data) and the expected result.
How to get answers to your question quickly
Best regards
Qin Community Support _Robert Team
If this post helps,then consider Accepting it as the solution to help other members find it faster.
Hey, @NilR
In my opinion, you cannot use the selected Slicer value in the Power query, because the Power query can only transform data from the data source and has no link to the visuals created in the report. The selected Segmentation value can only affect the value of measures created in the report.
What's more, if you want to filter a table to Max(Date) selected in the calendar slicer, you can follow my steps and find out if it's useful:
Date = CALENDAR(DATE(2018,1,1),DATE(2020,12,31))
Sum of amount =
var _maxdate=MAX('Date'[Date])
return
CALCULATE(SUM(Sales[Amount]),FILTER('Sales',[Date]<=_maxdate ))
And I guess this is what you want.
You can download my test pbix file here
If this result is not what you want, you can publish some sample data (without sensitive data) and the expected result.
How to get answers to your question quickly
Best regards
Qin Community Support _Robert Team
If this post helps,then consider Accepting it as the solution to help other members find it faster.
Thank you! How can I filter a table = to Max(Date) selected on Calandar slicer?
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 84 | |
| 49 | |
| 37 | |
| 31 | |
| 30 |