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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
abc_777
Post Prodigy
Post Prodigy

hi

Hi,

 

I Have a column where I have a few closed shops as well as some running shops

I want to separate closed shops and running shops using a measure and make them group so use them in the slicer. 

As you have seen below image, 5 are closed and the rest are not closed (running)

 

closed

running

 

not by using split

 

please help

 

store status.JPG

 

3 ACCEPTED SOLUTIONS
Nathaniel_C
Super User
Super User

Hi @abc_777 ,
Use CONTAINSSTRING()

Test = IF(CONTAINSSTRING('Table (2)'[Column1],"close"),"Closed","Open")


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Nathaniel_C_0-1656947233800.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

6 REPLIES 6
Nathaniel_C
Super User
Super User

Hi @abc_777 ,
Use CONTAINSSTRING()

Test = IF(CONTAINSSTRING('Table (2)'[Column1],"close"),"Closed","Open")


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




perfect. thanks

Hi @abc_777 ,

You are welcome!


Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Nathaniel_C_0-1656947233800.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




@Nathaniel_C 

thanks for your quick support,

 

there we have found how to take first few letters 'Closed' from each row

 

what about there i want something slightly from middle. same 'Closed' word from after few letter as you seen there are some number before 'Closed' now How could I take this 'Closed' word

 

Capture.JPG

 

Thanks

Hi @abc_777 ,

Sure, it will pick out the string from anywhere.  Even "ClosedNow"
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.