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

Duplicated values in visualised table

I made a visualisation of a table which is related to other table, now I want to create a column in this visualisation with information how many times same name is mentioned in this table. Table can be filtered by Fragmentator. I know that I need to create a measure but I'm not sure how it should look like.

6 REPLIES 6
Gacek014
Frequent Visitor

Thanks but I want to have this info in the last column. So I have table like this:

A B C D

x a q 

x s q

x d q

c f q

v g q

And I want to know in column D that x in column A is visible 3 times and c and v only onces.

 

A B C D

x a q 3 

x s q 3

x d q 3

c f q 1

v g q 1

Hi @Gacek014 

 

Use this:

Medida = CALCULATE(COUNTROWS(MyTable),ALLEXCEPT(MyTable,MyTable[A]))

 

mlsx4_0-1691777406610.png

 

So, something like this... 

StuartSmith_0-1691765299862.png

Calculated Column

Test 3 = COUNTX (
    FILTER ( 'Absence Master Record', EARLIER ( 'Absence Master Record'[Backfill] ) = 'Absence Master Record'[Backfill] ),
    'Absence Master Record'[Backfill]
)

Both answers gave me the same results, but I have relation with other table. Relation is set on column B and filtering is done partialy on the second table and partialy on the first one (From second table i take disivion and from the first one name). Now if I add Calculated column or measure, it is not updated by filters available but it is linked to raw data from table 1.

StuartSmith
Power Participant
Power Participant

Try something like this.  This counts how many "John Doe"'s are in the Backfill Column.

 

test = CALCULATE(COUNTROWS('Absence Master Record'), FILTER('Absence Master Record', 'Absence Master Record'[Backfill] = "John Doe"))
 
StuartSmith_0-1691762263618.png
mlsx4
Memorable Member
Memorable Member

Hi @Gacek014 

 

You can use COUNTROWS formula: COUNTROWS(MyTable)

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