Forum Discussion
Countrows with two conditions in different tables
Hi CH-BsAs,
Maybe you can try to use below measure to calculate total row count:
Color Count =
COUNTROWS ( FILTER ( ALL ( Time ), [color] = "R" && [response] > 5 ) ) //R
+ COUNTROWS ( FILTER ( ALL ( Time ), [color] = "Y" && [response] > 10 ) ) //Y
+ COUNTROWS ( FILTER ( ALL ( Time ), [color] = "G" && Time[response] > 15 ) )//G
Regards,
Xiaoxin Sheng
Thank you for your help Xiaoxin,
The problem I have is that the data is located in two different tables.
I think I did not explain myself the lasta time, since I see your formula is not taking that into account.
one table is TIME with the RESPONSE field (how long it takes to respond to the case)
and the other table is SERVICES with the field COLOR (type of service)
what I have to do is, according to the standard of each service (in my first post) to count those that were exceeded and add them to all in a final record.
there is any way to adapt your formula to two diferente tables?
thank you very much!
- Anonymous8 years agoNot applicable
HI CH-BsAs
Can you please provide table structure and relationship between these tables? (share some some sample data and expected result will help for testing and coding formula)
Regards,
Xiaoxin Sheng