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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
mthukara
Frequent Visitor

Need Help on DAX Formula

I need help in DAX formula for the below scneraio;

 

I have Category and value column, i need a Max value column which will repeat the max from val column irrespective of category.

 

In the below example 499 is the maximum value in val column and 499 should be for each record in max val column.

 

 

CategoryValMax Val
Cat1242499
Cat2499499
Cat3464499
Cat4104499
Cat5437499
Cat6131499
Cat7416499
Cat8156499
Cat9473499
Cat10295499
Cat11173499
Cat12478499
Cat13305499
Cat14478499
2 REPLIES 2
amitchandak
Super User
Super User

@mthukara ,

Try like

Max Val =
var _max = maxx(Table,Table[Val])
return
_max
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
Anonymous
Not applicable

 Create a calculated column with following DAX formula

 

Max Val = MAX('Table'[Val]) 

 

Thanks and Regards,

Neha Rajgadkar| BI Consultant

Nice Software SolutionsPvt. Ltd.

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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