Forum Discussion
NewPBI_user
2 years agoFrequent Visitor
CONTAINSSTRING and SELECTEDVALUE in COUNT function
Hello, I would like to ask for help as I cannot get over the problem. I have a matrix table with several measures. These measures are different calculations of contracts for different type o...
- 2 years ago
Measure = var s = SELECTEDVALUE('Garance product'[Column 1]) RETURN CALCULATE ( COUNT( 'Orders'[_airtableRecordId] ), CONTAINSSTRING('Orders'[Product],s), 'Orders'[State] IN { "Fakturace" , "Active"}, USERELATIONSHIP ( 'Calendar'[Date], 'Orders'[Uhrazeno] ) )
Anonymous
2 years agoNot applicable
Hi NewPBI_user
First of all, thanks to lbendlin for the quick and efficient reply.
If your problem is not solved yet, you can also try to use MAX to replace SELECTEDVALUE.
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.