添加不带唯一值的索引-Power BI/DAX/M [英] Add Index without unique values - Power BI / DAX / M
本文介绍了添加不带唯一值的索引-Power BI/DAX/M的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一列包含国家(在表格中,该列具有重复项),我需要使用索引对它们进行排序:
I have a column with Countries (in a table, the column have duplicates) and I need to order them with a index:
Countries, Desirable index
A 1
B 2
B 2
C 3
D 4
D 4
E 5
我无法删除重复项,因为我需要其他列作为参考
I can't remove the duplicates because I need the other columns for reference
谢谢
推荐答案
创建仅包含不同国家/地区的表,对该表建立索引,然后将该表合并/合并回现有表(具有重复项的表)并扩展索引您刚刚创建的列.
Create a table of only distinct countries, index that table, then merge/join that table back to your existing table (the one with duplicates) and expand the index column you just created.
这篇关于添加不带唯一值的索引-Power BI/DAX/M的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文