The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi Team,
Could you please provide me the solution on below condition in Dax. I wanted to apply one excel formula which was writen in excel -
Countif in excel e.g =COUNTIF([Value],[@Value]&".*")
Below is the requirement.
Solved! Go to Solution.
I don't get the same results as you but here's the DAX
ColumnNew = VAR _searchstring = TableY[Val] & "."
RETURN
COUNTROWS(FILTER(TableY, SEARCH(_searchstring, TableY[Val],1,0) )) + 0
Example of extra count : count of "1." is 3 but I get 4 because 4.1.1 contains 1.
I don't get the same results as you but here's the DAX
ColumnNew = VAR _searchstring = TableY[Val] & "."
RETURN
COUNTROWS(FILTER(TableY, SEARCH(_searchstring, TableY[Val],1,0) )) + 0
Example of extra count : count of "1." is 3 but I get 4 because 4.1.1 contains 1.
User | Count |
---|---|
16 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
23 | |
13 | |
13 | |
8 | |
8 |