Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Ranking by Date

Hi everyone,   I want to create a table that will allow me to rank the values based on the dates. I also wants this to work with the slicers in have in my report.   For instance,   Products ...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi  Anonymous ,

    Here are the steps you can follow:

    1. Create measure.

    Measure =
    RANKX(
        FILTER(ALL('Table'),'Table'[Products]=MAX('Table'[Products])),
        SUMX(RELATEDTABLE('Table'),'Table'[Date]),,ASC)

    2. Result.

    You can downloaded PBIX file from here.

     

    Best Regards,

    Liu Yang

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