Forum Discussion
Count IF between 2 tables
Hi DaveRaul,
You can create a calculated columns in the table like below:
Column = var t=LEFT('Table1'[Target - URL],SEARCH("/",'Table1'[Target - URL])-1)
return
RIGHT(t,LEN(t)-SEARCH(".",t))
Count = IF( RELATED( 'Library'[Library - URL] ) <> BLANK(), CALCULATE( COUNTROWS( Table1 ), ALLEXCEPT( Table1, Table1[Column] ) ) )
Best Regards,
Qiuyun Yu
- DaveRaul9 years agoNew Member
Thank you very much for the answer.
I tried your code but it does not work properly :-/
I got the following problem:If the string is extactly the same or of it is seperated by '/', it does work, .
But the code has to recognize the Url, if the Url just contains the library-Url-String.
In Excel one can write an asterisk like: if("cde"="*d*","Yes","No")
in this case i want the response "Yes", but your code deliveres for this case "No".
I realised this wasn't exactly formulated. Sorry for that.
- v-qiuyu-msft9 years agoCommunity Support
Hi DaveRaul,
In DAX, it doesn't have function perform as wildcards. The DAX provided in my previous reply is based on your sample data, as you mentioned it will not work, can you please share the sample to clarify which scenario doesn't work?
Best Regards,
Qiuyun Yu