Forum Discussion
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 to achieve.
Thank you in advance.
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
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.
14 Replies
- vanessafvg
Community Champion
smpa01 power query takes case sensitivity into consideration - if you using imported mode, i suggest doing a group by in power query (m)
- smpa01
Community Champion
This is what I see
- vanessafvg
Community Champion
smpa01 ok, is that wrong or right? explain more in detail if there is an issue