Forum Discussion
Looking for correct syntax please to pull multiple records
- 3 years ago
Hi , EZimmet
According to your description, you want to how to add a Contains statement for the '_Rack Metrics Report'[Site] ?
If this you can try to use "in" operator in dax code, like this:
VAR _count =
COUNTX ( FILTER ( ( '_Rack Metrics Report' ),'_Rack Metrics Report'[Site] in { "LOC1","LOC2","LOC3"}),[Site] )
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523