Forum Discussion

Bohdan_H's avatar
Bohdan_H
Frequent Visitor
3 years ago
Solved

Current data by month

I have a table in which data on the level of English is entered every few months. If you choose one person, there will be 2-3 entries for that person. It is necessary to write a formula so that when ...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Bohdan_H 

    Try the following suggestion.

    1.The date table have no relationship with data table

    Then create a column in data table

    Max_level = MAXX(FILTER('Table',[Name]=EARLIER('Table'[Name])&&EOMONTH([Date],0)=EOMONTH(EARLIER('Table'[Date]),0)),[Level]) 

    Then create a new measure

    Measure = CALCULATE(SUM('Table'[Level]),FILTER('Table',EOMONTH([Date],0)<=EOMONTH(MAX('Table 2'[Date]),0)&&[Level]=[Max_level]))

    Output

    Best Regards!

    Yolo Zhu

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