在Power BI中,按日期分组、Distinct(去重)和忽略其他筛选器是数据处理和分析中的常见操作。
原因:可能是日期格式不正确,或者分组粒度设置不当。
解决方法:
// 示例代码:按日期分组
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjQwMlSK1YlWsgsVYrJzS3JyVYpWsgvqKwNz0lVKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSflg==", BinaryEncoding.Base64)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Date = _t])),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}}),
#"Grouped Rows" = Table.Group(#"Changed Type", {"Date"}, {{"Count", each Table.RowCount(_), type number}})
in
#"Grouped Rows"
原因:可能是数据源中存在隐藏的重复项,或者Distinct操作未正确应用。
解决方法:
// 示例代码:Distinct操作
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjQwMlSK1YlWsgsVYrJzS3JyVYpWsgvqKwNz0lVKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkpsSgqKSwuT0gtKkp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