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
SeanN87
Frequent Visitor

Taking First value from duplicates in a column

I'm trying to create a dimension table that has Part Numbers and a corresponding Part Description. I successfully created the table with one column of Part Numbers (because those are unique), but depending on the dealership the descriptions can vary slightly. I used this formula to create the single column table:

 

PartDimension = CALCULATETABLE(SUMMARIZE('Master Part Quantities','Master Part Quantities'[Part_Number]),'Master Part Quantities'[Part_Number] <> BLANK())
 
But when I add the Part Description field to the groupings, I get a duplicate error:
SeanN87_0-1625848877845.png

Is there a way I can change this formula so that it only takes the FIRST part description it finds for each Part Number? I'm new to DAX so I apologize in advance if this is an easy one. 

 

Any help would be appreciated.

 

Thanks!

 

 

1 ACCEPTED SOLUTION
daxer-almighty
Solution Sage
Solution Sage

 

[Parts] =
FILTER(
    ADDCOLUMNS(
        DISTINCT( T[Part_Number] ),
        "Description",
            FIRSTNONBLANK( T[Part_Description], 1 )
    ),
    NOT ISBLANK( T[Part_Number] )
)

 

View solution in original post

2 REPLIES 2
daxer-almighty
Solution Sage
Solution Sage

 

[Parts] =
FILTER(
    ADDCOLUMNS(
        DISTINCT( T[Part_Number] ),
        "Description",
            FIRSTNONBLANK( T[Part_Description], 1 )
    ),
    NOT ISBLANK( T[Part_Number] )
)

 

Perfect! Thank you so much for the quick response.

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.