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
Learner1810
New Member

Query about generating a new MAX column on the table visual

Hello, I have a table visual on a Power BI Report with data as below. I need to generate column 5 (max of value in Col5 for every combination of Col1+Col2+Col3). Col0 has random values. All columns come from the same table in the Power BI model. 

Col0Col1Col2Col3Col5Col6
Abc01/10/2025XAa15
Abc02/10/2025XAa25
Xyz03/10/2025XAa35
Mno04/10/2025XAa45
nmk05/10/2025XAa55
BBB01/10/2025YBb13
Rqp02/10/2025YBb23
kjh03/10/2025YBb33

 

Can someone help please?

Thanks

Y

3 REPLIES 3
v-ssriganesh
Community Support
Community Support

Hello @Learner1810,

We hope you're doing well. Could you please confirm whether your issue has been resolved or if you're still facing challenges? Your update will be valuable to the community and may assist others with similar concerns.

Thank you.

v-ssriganesh
Community Support
Community Support

Hello @Learner1810,
Thank you for posting your query in the Microsoft Fabric Community Forum
.

I have reproduced your scenario in Power BI Desktop using the sample data you shared. By using the below DAX expression, I was able to generate the expected output where the Max Col5 correctly shows the maximum value of Col5 for each unique combination of Col2 + Col3.

Max Col5 =
CALCULATE(
    MAX(DataTable[Col5]),
    ALLEXCEPT(DataTable, DataTable[Col2], DataTable[Col3])
)


The ALLEXCEPT() function keeps the filters on Col2 and Col3 only, allowing the calculation to find the maximum value of Col5 across all dates (Col1) within those groups. For your reference, I have attached a .pbix file.

vssriganesh_0-1762250209870.png

Thank you, @parry2k for sharing your valuable insights.

Best regards,
Ganesh Singamshetty.

parry2k
Super User
Super User

@Learner1810 try this:

 

Col6 = 
CALCULATE ( 
    MAX ( 'Table'[Col5] ),
    ALLEXCEPT ( 'Table', 'Table'[Col3] )
)


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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