Forum Discussion

smpa01's avatar
smpa01
Community Champion
9 years ago
Solved

Identifying Duplicates by not taking Case Sensitivity into consideration - Power BI/Power Query

Hi ,   Is there a way Power BI can identify entries in a column as duplicates by taking into consideration the case sensitivity of the entires. I have attached a screenshot of what I want Power BI ...
  • vanessafvg's avatar
    vanessafvg
    9 years ago

    smpa01 right, so you dont want it to take the case sensitivity into account you mean?

     

    there are 2 ways of dealing with this

     

    if you going to work it out in power query (m) then change all text to either upper or lower case

    if you going to do it in dax (which ignores it)  just do a count unique = distinctcount(columnname) and place the value and the measure in your visual.  dax will ignore the different cases

  • MarcelBeug's avatar
    MarcelBeug
    9 years ago

    If you want to do it "the Power Query way", just group on data and adjust the generated code as illustrated:

     

    Note: the resulting values in the Data column will be just one of the upper/lower case data values from the source (the one that comes first). You may still want to change that to upper or lower as the next step.

     

    Full syntax of Table.Group:

    Table.Group(table as table, key as any, aggregatedColumns as list, optional groupKind as nullable number, optional comparer as function) as table

    You don't need groupKind.