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! Learn more

Reply
vzbkb1
Helper II
Helper II

DAX increate a column grouping for a column and providing the data for other

I am trying to create a new column in DAX that will give the result of the column Status for the type “Chain” with records with the same ID.  For example, for this table

 

Name

Type

ID

Status

a

Chain

21

Open

b

Job

21

Closed

c

Job

21

Closed

d

Job

21

Open

e

Chain

22

Closed

f

Job

22

Closed

g

Job

22

Closed

h

Job

22

Closed

 

The result will be

 

Name

Type

ID

Status

NewChain Status

a

Chain

21

Open

Open

b

Job

21

Closed

Open

c

Job

21

Closed

Open

d

Job

21

Open

Open

e

Chain

22

Closed

Closed

f

Job

22

Closed

Closed

g

Job

22

Closed

Closed

h

Job

22

Closed

Closed

 

Can you help me?

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @vzbkb1 
Please try

NewChain Status =
MAXX (
    FILTER (
        CALCULATETABLE ( TableName, ALLEXCEPT ( TableName, TableName[ID] ) ),
        TableName[Type] = "Chain"
    ),
    Chain[Status]
)

View solution in original post

2 REPLIES 2
vzbkb1
Helper II
Helper II

Thanks a lot it works great 🙂

tamerj1
Super User
Super User

Hi @vzbkb1 
Please try

NewChain Status =
MAXX (
    FILTER (
        CALCULATETABLE ( TableName, ALLEXCEPT ( TableName, TableName[ID] ) ),
        TableName[Type] = "Chain"
    ),
    Chain[Status]
)

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.