Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Dynamic date comparison issue

Hello Experts,   We have a strange issue where dynamic date selection is not able to compare and it gives wrong results.    We have two tables one for dynamic date and other with transaction Data...
  • Shishir22's avatar
    5 years ago

    Hello Anonymous ,

     

    You are trying to pass dynamic value of date in calculated column and hence its giving wrong result.

     

    Please create measure as below and check if it works:

    ConditionMeasure = IF([Selected date]>=FIRSTNONBLANK('Release KPI''s History'[History Date Converted],0),1,2)

     

    Please mark it as solution if it solves your requirement.

     

    Thanks!

  • nandic's avatar
    5 years ago

    Hi Anonymous ,
    Shishir22  is correct.
    Calculated columns are calculated on refresh of the file. But it means refresh icon in toolbar, but not slicers.
    When changing slicers, it doesn't influence on calculated columns.
    On the other hand, measures are created on-fly, so when you change slicers, measures are automatically recalculated.
    So measures are dynamic based on slicer change, calculated columns are static.

    Example of calculation:

     

    Regards,
    Nemanja Andic

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi nandic,

    Thanks!
    Appreciate your valuable inputs.