表格模型 - 按列排序:属性 值无效多个不同的值
Tabular Model - Sort by column: Property value is not valid multiple distinct values
我有以下日期table:
当我使用 MonthYear Past 列并想要排序时,排序顺序是按字母顺序而不是按时间顺序。当我想在 SSAS 表格模型中更改为排序顺序时,我选择了 datekey 或 date 但出现以下错误:
Property value is not valid
Cannot sort MonthYear Past by Date because at least one value in
MonthYear Past has multiple distinct values in Date. For example,
you can sort [City] by [Region] because there is only one region for each city,
but you cannot sort [Region] by [City] because there are multiple cities for each region.
如何对这个专栏进行排序?
解决这个问题:
因为 Past 与多个值相关联,所以我创建了一个新的计算列,当它超过时值为 1,否则值为 YearMonth。 & 然后在新的计算列
上排序
我有以下日期table:
当我使用 MonthYear Past 列并想要排序时,排序顺序是按字母顺序而不是按时间顺序。当我想在 SSAS 表格模型中更改为排序顺序时,我选择了 datekey 或 date 但出现以下错误:
Property value is not valid
Cannot sort MonthYear Past by Date because at least one value in
MonthYear Past has multiple distinct values in Date. For example,
you can sort [City] by [Region] because there is only one region for each city,
but you cannot sort [Region] by [City] because there are multiple cities for each region.
如何对这个专栏进行排序?
解决这个问题:
因为 Past 与多个值相关联,所以我创建了一个新的计算列,当它超过时值为 1,否则值为 YearMonth。 & 然后在新的计算列
上排序