Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I have a table with multiple columns. I need to count Column A, but only if it contains "TW/" or "TCH/". But it should only count if Column B contains the word "long". I managed to count the values with:
Solved! Go to Solution.
@Anonymous , You can add like
X = calculate(COUNTROWS(Table),SEARCH("TW/",Table[A],,0) , [column B]= "long") + calculate(COUNTROWS(Table),SEARCH("TCH/",Table[A],,0) , [column B]= "long")
or try like
X = calculate(COUNTROWS(Table),filter( (SEARCH("TW/",Table[A],,0) >0 || SEARCH("TCH/",Table[A],,0) >0 )&& [column B]= "long"))
@Anonymous , You can add like
X = calculate(COUNTROWS(Table),SEARCH("TW/",Table[A],,0) , [column B]= "long") + calculate(COUNTROWS(Table),SEARCH("TCH/",Table[A],,0) , [column B]= "long")
or try like
X = calculate(COUNTROWS(Table),filter( (SEARCH("TW/",Table[A],,0) >0 || SEARCH("TCH/",Table[A],,0) >0 )&& [column B]= "long"))
Both formulas can not add column B
oh my fault, it works perfect! BIG THANKS ❤️
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
96 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |