Forum Discussion

Madhusmita's avatar
Madhusmita
Frequent Visitor
3 years ago
Solved

Total value repeating across rows in Previous year calculation

Hi, I am struggling to calculate the previous year values across the rows. Right now its giving me the Total value which is repeating across rows. I am expecting the values by name  for each row. Pl...
  • v-jianboli-msft's avatar
    3 years ago

    Hi Madhusmita ï¼Œ

     

    Please try something like this:

    CALCULATE(SUM(RESULTS[CADRE POINTS]),FILTER(ALL('RESULTS'),[Name]=SELECTEDVALUE(RESULTS[Year])&&[Year]=SELECTEDVALUE(RESULTS[Year])))

     

    If this doesn't work, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

     

    Refer to:

    How to provide sample data in the Power BI Forum

    How to Get Your Question Answered Quickly

     

    Best Regards,

    Jianbo Li

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