Suppose my data changes earlier I was having data till 2024 Jun and now I have data till 2023 dec then how it works , currently I am facing problem on this can someone help me
Hi Pooja, the same solution given above will work, for the Max date month always it'll hold 'latest month'. In your case first time latest month would be jun 2024 now it'll be 2023 dec
Date 2 = VAR _max_date = MAX ( 'Balance date'[Balance date] ) VAR _last_three_month = EOMONTH ( _max_date, -1 ) + 1 RETURN IF ( 'Balance date'[Balance date] >= _last_three_month, "current month", FORMAT ( 'Balance date'[Balance date], "yyyy mmm" ) ) this is the dax that I have written
Thanks, the same name is what making the slicer to keep on default, you can add a measure in the card (lookup value which I showed in the demo) as a note around the slicer if you want
Hi Lakshmi, to make top 3 months as Default selection add the calculated column, Top 3 months = IF(RANKX(ALL('TableName'[YYYYMM]),'TableName'[YYYYMM],,DESC)