Forum Discussion

Lukas90's avatar
Lukas90
New Member
1 year ago
Solved

DAX

Hi,   I need to write a measure that will be calculated on the chart only for the smaller of the selected years. That is, if I select 2023 and 2024 on the slicer, I only want to see the value for 2...
  • Selva-Salimi's avatar
    Selva-Salimi
    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]))