Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
danielcontente
Helper II
Helper II

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,488)

danielcontente_0-1672913026854.png

The desired result should be a column with the following numbers:

danielcontente_1-1672913083745.png

 

Thank you so much in advance.

 

1 ACCEPTED SOLUTION

@danielcontente 

Please try

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

View solution in original post

7 REPLIES 7
danielcontente
Helper II
Helper II

working perfectly!!

 

appreciated it @tamerj1 

tamerj1
Super User
Super User

Hi @danielcontente 
Please try

=
DIVIDE (
    [#Total Accumulative Amount],
    CALCULATE ( [#Total Accumulative Amount], ALL ( 'Date'[Year Week number] ) )
)

Thanks so much @tamerj1 

however, i use a slicer for week, so if i filter for week 52, for example, there would be a new #max expected amount in week 52 and not 53. In this case, how can i do in order to consider the max value in the table depending on the filter?

example:

If i filter for week 52, then the table below would show only until week 52, and therefore all the values in the column "#Total Accumulative Amount" should be divided by the #Max Amount of week 52..

danielcontente_0-1672931956143.png

 

@danielcontente 

Try

=
DIVIDE (
[#Total Accumulative Amount],
CALCULATE (
[#Total Accumulative Amount],
ALLSELECTED ( 'Date'[Year Week number] )
)
)

Hi @tamerj1 

it didnt work.

It keeps dividing by the max amount not the amount of the max week.

Example:

because the amount in week 52 > week 53, even if a select week 53, it will divide by the amount of week 52.

@danielcontente 

Please try

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.