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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Change grand total of a column for an specific value

Hi, I have a colum with the grades of different students but i need the total of that column to be 100. I use a measure with Max for Grades since 100 is the Max of the column Grade. The issue is that when I use a filter, in this case a date filter, not always the max is 100. I need the measure to obtain the max of the entire column grade without filter regardless if I have a filter or not.

 

Grades = CALCULATE(max('Table Grades'[Grades]))
 
DateNameGrade
12/2/2019Solano Chaves Bernal60
12/2/2019Lopez Pérez Fiorella70
12/2/2019Chaves Martínez Jesús90
12/2/2019Paz Granados Jorge80
12/2/2019Garita Hidalgo Diego85
12/2/2019Barquero Valverde Alvaro 96
Total 96
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Perhaps you can remove all filters if there is no filter on name?

 

Grades =
IF (
    HASONEFILTER ( 'Table Grades'[Name] ),
    MAX ( 'Table Grades'[Grades] ),
    CALCULATE ( MAX ( 'Table Grades'[Grades] ), ALL ( [Table Grades] ) )
)


Don't know if this is what you were looking for, but perhaps it can give some input.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Perhaps you can remove all filters if there is no filter on name?

 

Grades =
IF (
    HASONEFILTER ( 'Table Grades'[Name] ),
    MAX ( 'Table Grades'[Grades] ),
    CALCULATE ( MAX ( 'Table Grades'[Grades] ), ALL ( [Table Grades] ) )
)


Don't know if this is what you were looking for, but perhaps it can give some input.

Anonymous
Not applicable

Hi @Anonymous thanks a lot, that was what I need.

amitchandak
Super User
Super User

try = Grades = round(CALCULATE(max('Table Grades'[Grades])),-2)

 

or see if ceiling can help

https://docs.microsoft.com/en-us/dax/ceiling-function-dax

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

Top Solution Authors
Top Kudoed Authors