Forum Discussion
DAX to remove duplicate row entries
- 4 years ago
Hi, deb_power123
No dax can identify whether the type of a field is a region or a country.
For the 100 entries for the combinations, you can only consider removing the data by looking for keywords.
Please add a filter measure and apply it to visual filter pane to filter data:
Ex:
Measure = IF(MAX('Table'[Region]) in {"Asia","Europe"},0,1)or
Measure1 = IF(CONTAINSSTRING(MAX('Table'[Region]),"Asia")||CONTAINSSTRING(MAX('Table'[Region]),"Europe"),0,1)Please let me know if I misunderstood.
Best Regards,
Community Support Team _ Eason
Hi, deb_power123
If you want to use DAX to remove duplicate row entries, koorosh 's solution could work for you.
If your problem has been solved, please accept koorosh's reply as solution to close this thread, so that other community members will easily find the solution when they get the same issue.
Best Regards,
Community Support Team _ Eason
I want to get rid of Asia,Delhi then Asia,Shimla and Asia,Panjim in below table and also it has say 100 enties for the combinations .Can we have any DAX or trasformation rule to handle this?
| Region | location | Averagemarks | SchoolName |
| Asia | Delhi | 90 | ABC |
| India | Delhi | 90 | ABC |
| India | Chennai | 85 | DEF |
| Japan | Tokyo | 88 | XYZ |
| Asia | Shimla | 92 | WEF |
| India | Shimla | 92 | WEF |
| Asia | Panjim | 78 | LMN |
| India | Panjim | 78 | LMN |
| Asia | Goa | 66 | JKL |
| Asia | Hongkong | 71 | OPP |
| Asia | Karachi | 41 | LMI |
- v-easonf-msft4 years ago
Community Support
Hi, deb_power123
No dax can identify whether the type of a field is a region or a country.
For the 100 entries for the combinations, you can only consider removing the data by looking for keywords.
Please add a filter measure and apply it to visual filter pane to filter data:
Ex:
Measure = IF(MAX('Table'[Region]) in {"Asia","Europe"},0,1)or
Measure1 = IF(CONTAINSSTRING(MAX('Table'[Region]),"Asia")||CONTAINSSTRING(MAX('Table'[Region]),"Europe"),0,1)Please let me know if I misunderstood.
Best Regards,
Community Support Team _ Eason