Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213916

Help with Measure for contains

$
0
0

I am using the Power BI Desktop App to build a report against an Azure storage table which contains error logging for our web services. I am trying to write a measure against the description column for contains to get a better idea of what errors are occurring by looking for specific key words, su7ch as address, phone, name, etc.

 

Error Message Examples:

 

Error publishing message to CRM: Phone Verification failure.  Phone number format is invalid or contains invalid characters.

 

Error publishing message to CRM: Validator error. Command: CreateContact - Description: ErrorCode: 12001 - (Details: Address state is missing).

 

Error publishing message to CRM: Validator error. Command: CreateContact - Description: ErrorCode: 12004 - (Details: First name is missing.)

 

I have tried the following:

 

Measure = CONTAINS(ALL([Description]), "Address")

 

This results in an error that “Too few arguments were passed to the CONTAINS function. The minimum argument count for the function is 3.”

 

I have also tried:

 

Measure = CONTAINS(AuditLog[Description], "Address", AuditLog[Description], "error", AuditLog[Description],"missing")

 

This results in an error that “the number of arguments is invalid. Function CONTAINS must have a value for each specified column reference.”

 

I have also tried a couple other variants and receive syntax errors. Could someone help me with getting a querry correct for this?


Viewing all articles
Browse latest Browse all 213916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>