Forum Discussion
Identifying Duplicates by not taking Case Sensitivity into consideration - Power BI/Power Query
- 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
- 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.
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.
This is the answer I was looking for. The tagged "Solution" was not helpful.
Add this before the last parenthesis in the Table.Group function:
, type number}},null,Comparer.OrdinalIgnoreCase