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
Ttaylor9870
Helper III
Helper III

Hiding duplicate values in a Column

Hi All,

 

I have a table as follows which is extremly over simplfied and for privacy reasons I can't show the specific data I am working with...

 

A     |      B       |     C  

1       Walter          5

2        Walter         5

3        Jesse           3

4        Saul             2

5       Badger          1

                    Total: 11

 

Walter has the Value 5 and it hasn't been counted twice which is great,

I would like to know is there a DAX function where I can have my table output the following...

 

A     |      B       |     C  

1       Walter          5

2        Walter         

3        Jesse           3

4        Saul             2

5       Badger          1

                    Total: 11

 

Hides the duplicate value yet the rest of the row remains?

 

Many Thanks

1 ACCEPTED SOLUTION
Barthel
Solution Sage
Solution Sage

Hey,

 

Give this a try:

D =
VAR A_B =
    CALCULATETABLE (
        SUMMARIZE ( 'Table', 'Table'[A], 'Table'[B] ),
        ALLEXCEPT ( 'Table', 'Table'[B] )
    )
VAR RankA_B =
    RANKX ( A_B, 'Table'[A],, ASC )
VAR Result =
    IF ( RankA_B = 1, 'Table'[C] )
RETURN
    Result

Barthel_0-1659368978888.png

View solution in original post

1 REPLY 1
Barthel
Solution Sage
Solution Sage

Hey,

 

Give this a try:

D =
VAR A_B =
    CALCULATETABLE (
        SUMMARIZE ( 'Table', 'Table'[A], 'Table'[B] ),
        ALLEXCEPT ( 'Table', 'Table'[B] )
    )
VAR RankA_B =
    RANKX ( A_B, 'Table'[A],, ASC )
VAR Result =
    IF ( RankA_B = 1, 'Table'[C] )
RETURN
    Result

Barthel_0-1659368978888.png

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.