Forum Discussion
DAX Count Filtering where a column contains text from another Table's Column
You sure you're doing it as described? I get exactly the results you show in your first post
Hello AlB
I tried with the frutis scenario and it worked but in production it didnt work.
I have the following DAX, the only differece with yours are the ";" which were not recognized and I changed them to ","
CountProducto =
COUNTROWS (
FILTER (
visitas,
CONTAINSSTRING (visitas[Product],SELECTEDVALUE(UCVisitas_ProductoServicio[Title]))
)
)
Here is a pic of the info that is not working correctly:
A = The result, as you can see, there es an empty "product".
B = The count of the products (without the filter) where you can see an example of the mixed products (line 3).
C = The products catalog.
What I noticed is the result in production also gives me an empty "Category" (A).
Thank you for your help.
- AlB7 years ago
Community Champion
The empty lines frequently show up as a result of an item in the dim table that does not exist int he fact table. However, I cannot tell what's going on without more info. Can you share the pbix?
- riop2 years agoNew Member
did you find a solution for this? Having the same issue.