Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Add trend column to the table

Hi Guys,   I need your help with following problem. I have a table that looks like this: YQ 2023-2 2023-3 2023-4 2024-1 2024-2 2024-3   Based on context filter other col...
  • v-yanjiang-msft's avatar
    3 years ago

    Hi Anonymous ,

    According to your description, here's my solution.

    1.Add an index column in Power Query.

    2.Create a measure.

    Measure =
    100 - ( MAX ( [Index] ) - MINX ( ALLSELECTED ( 'Table' ), 'Table'[Index] ) ) * 20
    

    Get the correct result:

    I attach my sample below for your reference.

     

    Best regards,

    Community Support Team_yanjiang

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