代码之家  ›  专栏  ›  技术社区  ›  Victor Barreto

如何在Power BI中仅从整数中提取第一个数字?

  •  2
  • Victor Barreto  · 技术社区  · 2 年前

    我感兴趣的是使用DAX语言从整数中提取第一个数字。例如以下列

    整数
    33334344
    23256566
    34567666

    我想要下面的输出,但我不知道怎么做,因为我是Power Bi的新手。 |整数| |:------:| |3 | |2 | |3 |

    1 回复  |  直到 2 年前
        1
  •  2
  •   davidebacci    2 年前

    enter image description here

    Measure = LEFT( CONVERT(SUM(Table1[integers]), STRING),1)