Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Need Help on create the Measure

I am trying to create the Measure where the below table formation . Please help me how to create the Measure where it should count the recent transaction date based on ID as higher rank. Each Rank I ...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hello,rajendraongole1 ,thanks for your concern about this issue.

    Your answer is excellent! And I would like to share some additional solutions below.
    Hi,Anonymous .I am glad to help you.
    If the calculated columns don't fit your needs, here is what I calculated by creating a measure, which enables dynamic transformations based on the data in the visual.
    In fact I only modified the code rajendraongole1  provided by using RANK().
    measure:

     

    M_Rank = 
    VAR _rank=
    RANK(DENSE,FILTER(ALL(Rknk),'Rknk'[ID]=MAX('Rknk'[ID])),ORDERBY('Rknk'[Transaction Date],DESC),DEFAULT)
    RETURN _rank

     

     

    I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
    Best Regards,
    Carson Jian