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
Yggdrasill
Responsive Resident
Responsive Resident

Fill down column based on values with DAX

Hi ! 

 

I have 3 columns - EVENT ID, CATEGORY and LABEL

There's always ONE Primary LABEL within every EVENT, rest is Other

16Primary
135Other
15Other
166Other
21Primary
22Other
31Other
34Primary
35Other
36Other
4888Primary
51Primary
61Primary
766Other
755Other
744Primary
733Other


This is my desired OUTPUT. Extra Column which takes the Primary value and fills down the event with that value

16Primary6
135Other6
15Other6
166Other6
21Primary1
22Other1
31Other4
34Primary4
35Other4
36Other4
4888Primary888
51Primary1
61Primary1
766Other44
755Other44
744Primary44
733Other44


This needs to be a calculated column 
Thanks for your help !

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Yggdrasill 

Create a calculated column:

 

NewCol =
CALCULATE (
    DISTINCT ( Table1[CATEGORY] );
    Table1[LABEL] = "Primary";
    ALLEXCEPT ( TAble1; Table1[EVENT ID] )
)

 

View solution in original post

2 REPLIES 2
Yggdrasill
Responsive Resident
Responsive Resident

Dude, that was brutally simple ! Thanks !

AlB
Community Champion
Community Champion

Hi @Yggdrasill 

Create a calculated column:

 

NewCol =
CALCULATE (
    DISTINCT ( Table1[CATEGORY] );
    Table1[LABEL] = "Primary";
    ALLEXCEPT ( TAble1; Table1[EVENT ID] )
)

 

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