Forum Discussion
jmiridium
Helper IV
9 years agoCALCULATE and FILTER With Text
How do I add a column using CALCULATE and FILTER with text results? Urgent
- Anonymous9 years ago
Failed = CALCULATE( COUNT(ComputerStatus[Acrobat]), LEFT(ComputerStatus[Acrobat], 6) = "FAILED") )Try this.
rventura
9 years agoFrequent Visitor
Completed =
CALCULATE(
COUNTROWS(incidents),
FILTER(incidents, incidents[Ticket Status] = "Completed"),
FILTER(incidents, incidents[Location] = locations[Location])
)- jmiridium9 years ago
Helper IV
Too many arguments were passed to the COUNTROWS function. The maximum argument count for the function is 1.
- jmiridium9 years ago
Helper IV
OK I think I have somewhat of an idea how to get it going. How do I enter a wildcard on a text field?
Example:
Failed =
CALCULATE(
COUNT(ComputerStatus[Acrobat]),
FILTER(ComputerStatus, ComputerStatus[Acrobat] = "FAILED"))- Anonymous9 years agoNot applicable
Is failed always going to be the first 6 characters? If so, use LEFT([YourField], 6) = "FAILED". Failing that there is a function called FIND which returns true or false if it finds a subtext within a larger text.
For performance reasons, LEFT is going to be faster but if its not suitable FIND will work in a similar manner to the wildcarding you were hoping for.