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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
sharonmathew
Helper I
Helper I

please help me find Duplicates

http://powerpivotforum.com.au/viewtopic.php?f=6&t=1055

Kindly hlp me identify the duplicates.

10 REPLIES 10
Zubair_Muhammad
Community Champion
Community Champion

Hi @sharonmathew

 

You can add this calculated column to your Table

 

=
IF ( CALCULATE ( COUNTROWS ( TableName ) ) > 1, "Duplicates" )

Regards
Zubair

Please try my custom visuals

Hi thanks,

 

but can we get a measure:=,

 

it is attractive than cc.. i love measures.

the results can be like this.

AirlineDateICAO Flight NoFromToAircraft TypeCount of Date
Air Canada18-02-2018ACA17Toronto PearsonTokyo NaritaBoeing 787-93
Air Canada18-02-2018ACA17Toronto PearsonTokyo NaritaBoeing 787-93
British Airways20-02-2018BAW19London CityNew York JFKAirbus A3182
British Airways20-02-2018BAW19London CityNew York JFKAirbus A3182
Emirates25-02-2018UAE114DubaiLondon HeathrowAirbus A380-8002
Emirates25-02-2018UAE114DubaiLondon HeathrowAirbus A380-8002

but there is one more,

 

the aircraft type is not necessarily be duplicated to be duplicate. so we may have many other fields.

 

when i prepared the data, i selected the fields of interest. so it would be desirable if we have the fields inside the measure under a filter i believe

@sharonmathew

 

As a MEASURE, try this

 

=
IF ( COUNTROWS ( TableName ) > 1, COUNTROWS ( TableName ) )

Regards
Zubair

Please try my custom visuals

@sharonmathew

 

MEASURE are dynamic.... SO whatever combination of fields you use in a PIVOT TABLE..... This MEASURE would give you the count of duplciates for that

 

 


Regards
Zubair

Please try my custom visuals

Ok, thanks, but perhaps, my query, needs a bit rephrasing, as i might not have been explained that part.

 

when i pull one field, all the fields to be applied in the measure without all the fields being pulled.

 

the measure you have given me does work like charm,  i do not have any disagreement. 

 

but please give me a measure which would give me the even when we put one of the fields in the row label.

 

with all the fields being considered.

 

so if we place Airline field. then it calculates the duplicates considering all the fields in the data table. [but there may bemore fields which we need not consider for this calculation] it gives me the all the entries of duplicates. just as a data table sorted with duplicate entries.

HI @sharonmathew

 

Please could you give me an example of OUTPUT desired.

 

I will try to help.

 


Regards
Zubair

Please try my custom visuals

ok, if we place Airline [ or any of the fields which is shown on the data table]

we get a table with measure tells us each row by row which is 1st entry and 2nd entry and 3rd entry.

so here i dont necessarily have to pull all the fields [

AirlineICAO Flight NoFromToAircraft TypeDate

result looks like this.

 

AirlineDateMeasure
Air Canada431491
Air Canada431492
Air Canada431493
British Airways431511
British Airways431512
Emirates431561
Emirates431562

 

or

AirlineICAO Flight NoDateMeasure
Air CanadaACA1718-Feb-181
Air CanadaACA1718-Feb-182
Air CanadaACA1718-Feb-183
British AirwaysBAW1920-Feb-181
British AirwaysBAW1920-Feb-182
EmiratesUAE11425-Feb-181
EmiratesUAE11425-Feb-182

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.