【问题标题】:How to change dataype of calculated column number to text in power BI如何在 Power BI 中将计算列号的数据类型更改为文本
【发布时间】:2018-09-20 07:25:59
【问题描述】:

我有一个与 SSAS 多维数据集实时连接的 power bi 报告。我有一个数字列,我想使用 DAX 将其转换为文本,因为它是一个实时连接,我无法在 power bi 端更改它。有办法吗?

【问题讨论】:

标签: powerbi powerbi-desktop powerbi-datasource


【解决方案1】:

可以在dax中使用format函数,

例如,您可以添加一个新列,如下例所示:

New_Column = FORMAT(Table1[NumericColumn];"通用数字")

Pre-Defined Numeric Formats for the FORMAT Function的源代码中获取此示例

希望对你有帮助!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-28
    • 1970-01-01
    • 2022-11-21
    • 2023-03-05
    • 1970-01-01
    相关资源
    最近更新 更多