Containsstring在DAX中无法搜索字符串。

huangapple go评论69阅读模式
英文:

Containsstring in dax cannot search the string

问题

我有一个表格,我想要对行数进行计数,但是公式不起作用。我已经尝试过通配符了。不确定我做错了什么。

该卡片显示为空白

资产行数 =
计数行数(
过滤(
'GL Account Group - GLACGRP',
包含字符串('GL Account Group - GLACGRP'[Account Group Name], "资产")
)
)
数据如下图所示:
Containsstring在DAX中无法搜索字符串。

英文:

I have a table in which I want to do a count of rows but the formula is not working. I have tried wildcards too. Not sure what am I doing wrong.

The card displays BLANK

Asset Rows = 
COUNTROWS(
    FILTER(
        'GL Account Group - GLACGRP', 
        CONTAINSSTRING('GL Account Group - GLACGRP'[Account Group Name], "assets")
        )
)

The data is as follows:
Containsstring在DAX中无法搜索字符串。

答案1

得分: 1

Your code is correct. Trim the column 3 and check. May be some extra spaces causing error.

英文:

Your code is correct. Trim the column 3 and check. May be some extra spaces causing error.

huangapple
  • 本文由 发表于 2023年7月6日 16:03:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/76626718.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定