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

Extract distinct values from cell

HI, I have data refer data in column "Names". I need output which is shown in Distinct Values. I do not need Measure, need calculated column. Thanks in advance

 

NamesDistinct Values
AABBC3
AA1
AB2
DF2
DDDE2
1 ACCEPTED SOLUTION

@KL718 

 

Minor correction.

This works with me

 

separateletters = 
COUNTROWS (
    SUMMARIZE (
        ADDCOLUMNS (
            GENERATESERIES ( 1, LEN ( [Names] ) ),
            "letter", MID ( [Names], [Value], 1 )
        ),
        [letter]
    )
)

dsfds.png

View solution in original post

3 REPLIES 3
Zubair_Muhammad
Community Champion
Community Champion

@KL718 

 

Try this calculated column

 

separateletters =
COUNTROWS (
    SUMMARIZE (
        ADDCOLUMNS (
            GENERATESERIES ( 1, LEN ( [Names] ) ),
            "letter", MID ( [Text], [Value], 1 )
        ),
        [letter]
    )
)

@KL718 

 

Minor correction.

This works with me

 

separateletters = 
COUNTROWS (
    SUMMARIZE (
        ADDCOLUMNS (
            GENERATESERIES ( 1, LEN ( [Names] ) ),
            "letter", MID ( [Names], [Value], 1 )
        ),
        [letter]
    )
)

dsfds.png

Hey, Thanks

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