Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
unclejemima
Post Patron
Post Patron

Calculate for exact text formula changed to 'contains' text formula...

I've got a calc that works off some exact text.  In this case the text it looks for is "W2-FLSS".

 

I'd like to change the formula so that if it sees any instance of the word "FLSS", it will return a result...not just "W2-FLSS" what is unfortunately to exact and doesn't work right now.

 

Here the current calc with the exact text "W2-FLSS".  If someone would be kind enough to rewrite the calc so that it would grab results from anything with the words "FLSS".

 

Skid_Avail_FLSS = 
CALCULATE(
    SUM(Stok[Skid_Qty_Avail]),
    Stok[Location] = "W2-FLSS",
    VALUES(Stok[QTY-Available])
)

 


Thanks!

 

 

1 ACCEPTED SOLUTION
tackytechtom
Super User
Super User

Hi @unclejemima ,

 

How about using

CONTAINSSTRING ( Stok[Location], "FLSS"),
 
instead of 
Stok[Location] = "W2-FLSS",
 
Let me know if this works 🙂
 


Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

2 REPLIES 2
unclejemima
Post Patron
Post Patron

That appears to do the trick!  Thank you!  Will mark as solved.

tackytechtom
Super User
Super User

Hi @unclejemima ,

 

How about using

CONTAINSSTRING ( Stok[Location], "FLSS"),
 
instead of 
Stok[Location] = "W2-FLSS",
 
Let me know if this works 🙂
 


Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.