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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
AllanBerces
Post Partisan
Post Partisan

Max No. per Week

Hi good day,

Can pls someone help me on my measure. I have table i want to get the max no. of pax per week

My Table:

AllanBerces_0-1723604130769.png

Output using measure

AllanBerces_1-1723604204207.png

Thank you

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @AllanBerces - calculate the maximum number of Pax per week for each Trade , you can create below measure

 

please replace with your table name as per your model.

 

MaxPaxPerTrade1 =
SUMX(
    SUMMARIZE(
        'Trad',
        'Trad'[Trade],
        'Trad'[WeekNo.],
        "MaxPax", MAX('Trad'[Pax])
    ),
    [MaxPax]
)

 

 

rajendraongole1_1-1723605398909.png

output:

rajendraongole1_2-1723605413888.png

 

Hope it helps.

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
danextian
Super User
Super User

Hi @AllanBerces ,

--returns the max per week regardless of other columns in the visual 
CALCULATE ( MAX ( 'table'[pax] ), ALLEXCEPT ( 'table', 'table'[Week No.] ) )

--returns the max per week per trade per area 
CALCULATE (
    MAX ( 'table'[pax] ),
    ALLEXCEPT ( 'table', 'table'[Week No.], 'table'[trade], 'table'[area] )
)









Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
rajendraongole1
Super User
Super User

Hi @AllanBerces - calculate the maximum number of Pax per week for each Trade , you can create below measure

 

please replace with your table name as per your model.

 

MaxPaxPerTrade1 =
SUMX(
    SUMMARIZE(
        'Trad',
        'Trad'[Trade],
        'Trad'[WeekNo.],
        "MaxPax", MAX('Trad'[Pax])
    ),
    [MaxPax]
)

 

 

rajendraongole1_1-1723605398909.png

output:

rajendraongole1_2-1723605413888.png

 

Hope it helps.

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi @rajendraongole1 @danextian thank you for the reply for the solutions on my query.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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