Forum Discussion
DAX
- 1 year ago
yes you are right. The issue was due to an oversight on my part. you should write it as follows...
var min_year = calculate( min ('date' [year]) , allselected ('date' [year]))
so you should write it as follows:
var min_year = calculate( min ('date' [year]) , allselected ('date' , 'date' [year]))
If this post helps, then I would appreciate a thumbs up and mark it as the solution to help the other members find it more quickly.
Still doesn't work:(
- Selva-Salimi1 year agoSolution Sage
- Lukas901 year agoNew Member
Yes, for this second option I got "Multiple arguments are not allowed in the ALLSELECTED function when the first argument is a table reference."
- Selva-Salimi1 year agoSolution Sage
yes you are right. The issue was due to an oversight on my part. you should write it as follows...
var min_year = calculate( min ('date' [year]) , allselected ('date' [year]))
- Lukas901 year agoNew Member
I removed table reference and now it works! Many Thanks!