Forum Discussion

danielcontente's avatar
3 years ago
Solved

Last week in the table calculation

Hi, i have the following table, and would like to create a measure in which i will divide each item in the column "#Total Accumulative Amount" by the value in the column "Max Expected Amount" (26,834...
  • tamerj1's avatar
    tamerj1
    3 years ago

    danielcontente 

    Please try

    =
    DIVIDE (
    [#Total Accumulative Amount],
    MAXX (
    TOPN (
    1,
    ADDCOLUMNS (
    ALLSELECTED ( 'Date'[Year Week number] ),
    "@MaxAmount", [#Max Amount]
    ),
    'Date'[Year Week number]
    ),
    [@MaxAmount]
    )
    )