Forum Discussion

kemaley's avatar
kemaley
Frequent Visitor
2 years ago
Solved

GenerateSeries Function Cannot Be Blank Error

Hello, My code for parameter is below down   Parameter Month = VAR MonthMax = CALCULATE( MAX(Sales[MyMonth]), FILTER( Sales, Sales[MyMonth]>=1 && Sales[MyMonth]<=12 ) , Sales[MyYea...
  • DataInsights's avatar
    DataInsights
    2 years ago

    kemaley,

     

    The reason is that 2024 is a single value, but the SELECTEDVALUE expression returns BLANK since there is more than one value in 'Parameter MyYear'[Parameter MyYear]. Even though a user may have selected 2024, calculated tables don't recognize user selections (e.g., slicer/filter).

     

    https://dax.guide/selectedvalue/