Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
m1ke909
Frequent Visitor

Unique field count help!

New to Power BI here so this could be a silly question. 

 

I need to count the amount unquie text fields within another field and I'm not sure where to start? 

Example where C3 is retuning what I would like and C1 & C2 are the data fields I'm working with.

 

Any help would be greatly appreicated.

 

C1    C2     C3

SH1   A      3

SH1   B      3

SH1   C      3

SH2   A      1

SH2   A      1

SH3   C      2

SH3   A      2

SH4   B      2

SH4   C      2

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @m1ke909 

Create a new calculate column, where Table0 is the table you show: 

C3 =
COUNTROWS (
    CALCULATETABLE (
        SUMMARIZE ( Table0; Table0[C1]; Table0[C2] );
        ALLEXCEPT ( Table0; Table0[C1] )
    )
)

 

View solution in original post

2 REPLIES 2
AlB
Community Champion
Community Champion

Hi @m1ke909 

Create a new calculate column, where Table0 is the table you show: 

C3 =
COUNTROWS (
    CALCULATETABLE (
        SUMMARIZE ( Table0; Table0[C1]; Table0[C2] );
        ALLEXCEPT ( Table0; Table0[C1] )
    )
)

 

m1ke909
Frequent Visitor

Thank you! All working now!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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
Top Kudoed Authors