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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Calculate Max Value on each date in line chart

Hi I was to calculate maximum of a value on each date , and selected slicers values (load name and Bank_R) on the line chart . Currently it is giving me maximum of all on a bank date but ignoring bank_r and load name values. How to cater that ? 

I am using this DAX measure :

maximum_controlled_deviation =
CALCULATE(MAX('SLA_Reporting_View'[Controlled_Deadline_Deviation_]),ALLEXCEPT('SLA_Reporting_View','SLA_Reporting_View'[Bank_DATO_K_Formatted])

)
 
max control dev.png

 

1 ACCEPTED SOLUTION
dedelman_clng
Community Champion
Community Champion

Hi @Anonymous -

 

You can add multiple columns to ALLEXCEPT

 

maximum_controlled_deviation =
CALCULATE (
    MAX ( 'SLA_Reporting_View'[Controlled_Deadline_Deviation_] ),
    ALLEXCEPT (
        'SLA_Reporting_View',
        'SLA_Reporting_View'[Bank_DATO_K_Formatted],
        'SLA_Reporting_View'[Bank_R],
        'SLA_Reporting_View'[Load Name]
    )
)

 

Alternately you can put the slicer values for Bank_R and Load Name into variables via SELECTEDVALUE, then apply them as filters inside the CALCULATE.

 

Hope this helps

David

View solution in original post

2 REPLIES 2
dedelman_clng
Community Champion
Community Champion

Hi @Anonymous -

 

You can add multiple columns to ALLEXCEPT

 

maximum_controlled_deviation =
CALCULATE (
    MAX ( 'SLA_Reporting_View'[Controlled_Deadline_Deviation_] ),
    ALLEXCEPT (
        'SLA_Reporting_View',
        'SLA_Reporting_View'[Bank_DATO_K_Formatted],
        'SLA_Reporting_View'[Bank_R],
        'SLA_Reporting_View'[Load Name]
    )
)

 

Alternately you can put the slicer values for Bank_R and Load Name into variables via SELECTEDVALUE, then apply them as filters inside the CALCULATE.

 

Hope this helps

David

Anonymous
Not applicable

Putting everything in ALLEXCEPT worked! Cheers & Thanks 🙂

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.