Forum Discussion

BItoken's avatar
BItoken
Helper III
5 years ago
Solved

Compare data between 2 dates

Hi All,   I have a History tracking table that tracks all changes for a given account and loads all changes with a load date to the table. Now in Power BI we need to create a comparison of data be...
  • v-deddai1-msft's avatar
    5 years ago

    Hi BItoken ,

     

    Since you have many other filters on the table visual, so all(table) will have some issue. Please use the following measure for instead:

     

    Measure new = IF(MAX(renewals_history[eff_start_dt]) = CALCULATE(MAX('renewals_history'[eff_start_dt]),FILTER(ALL(renewals_history[eff_start_dt]),'renewals_history'[eff_start_dt]<=MAX('Date'[Date]))),1,0)

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    Best Regards,

    Dedmon Dai