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 column that says either pass or fail and I 'm tyring to do a countif to let me know how many pass or fails I have but I want to filter it by week. I have a similar DAX formula where using allexcept(table name, name column) worked but when I try it with again, it says that W12 it says "Cannot convert value 'W12' of type Text to type True/False."
Here is the formula that I was able to use to get a weekly value:
Solved! Go to Solution.
I did it in two ways, please try:
Measure =
CALCULATE (
COUNT ( TableName[ColumnName] ),
FILTER (
ALLEXCEPT ( TableName, TableName[Week] ),
'TableName'[ColumnName] = "Pass"
)
) + 0
O
Measure 2 =
CALCULATE (
COUNT ( TableName[ColumnName] ),
FILTER (
ALL ( 'TableName' ),
'TableName'[ColumnName] = "Pass"
&& 'TableName'[Week] = MAX ( 'TableName'[Week] )
)
) + 0
The final output is shown below:
If this post helps, then consider Accept it as the solution to help other members find it faster.
Best regards
Eyelyn Qin
I did it in two ways, please try:
Measure =
CALCULATE (
COUNT ( TableName[ColumnName] ),
FILTER (
ALLEXCEPT ( TableName, TableName[Week] ),
'TableName'[ColumnName] = "Pass"
)
) + 0
O
Measure 2 =
CALCULATE (
COUNT ( TableName[ColumnName] ),
FILTER (
ALL ( 'TableName' ),
'TableName'[ColumnName] = "Pass"
&& 'TableName'[Week] = MAX ( 'TableName'[Week] )
)
) + 0
The final output is shown below:
If this post helps, then consider Accept it as the solution to help other members find it faster.
Best regards
Eyelyn Qin
Hi,
This is what you should do:
Measure = countrows(data)
Hope this helps.
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 |
---|---|
107 | |
97 | |
75 | |
63 | |
62 |
User | Count |
---|---|
139 | |
104 | |
104 | |
80 | |
66 |