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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Carlo1975
Helper I
Helper I

Repeated Values

Hi I have a column with my sell ID.

ID
00065862
00035306
00049674
00038281
00036700
00053195
00032684
00078092
00049675
00078095
00048102
00048101
00048103
00038598
00035305
00035304
00035306
00043491
00036782
00082791
00039057
00032684
00048101

 

I have to insert a new column to locate the Repeated ID Value, but, after that, I have to exclude one of it (I will do it with a filter) and so, is possible to check just one of the two or more values repeated?

I attache an example

 

IDrepeated IDs
00065862 
00049674 
000496741
00038281 
00032684 
00053195 
000326841

 

In my example repeating IDs are 00049674 and 00032684 but I have to check just one of each, because after I will filter out all 1. Is not important if I sign the first or the second of repeated value.

1 ACCEPTED SOLUTION
edhans
Community Champion
Community Champion

You could use a calculated column like this @Carlo1975 

Instance Count = 
VAR varCurrentID = 'Table'[ID]
RETURN
COUNTROWS(
    FILTER(
        ALL('Table'),
        'Table'[ID] = varCurrentID
    )
)

edhans_0-1607364648446.png

Same as a COUNTIFS() in Excel.

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

4 REPLIES 4
edhans
Community Champion
Community Champion

You could use a calculated column like this @Carlo1975 

Instance Count = 
VAR varCurrentID = 'Table'[ID]
RETURN
COUNTROWS(
    FILTER(
        ALL('Table'),
        'Table'[ID] = varCurrentID
    )
)

edhans_0-1607364648446.png

Same as a COUNTIFS() in Excel.

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
edhans
Community Champion
Community Champion

I'm not clear on your requirements exactly @Carlo1975 , but you cannot just check a few items to answer that specific question. Power BI, either in Power Query or DAX, will check the entire dataset based on the formula you use.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Ok, I understand, ans so, more simple. I have to add a column and check when a Id is repeated. Like if in exel i use CountIf

AlB
Community Champion
Community Champion

Hi @Carlo1975 

If you create a calulcated table with

     ALL(Table1[ID])

the duplicates will already be removed

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.