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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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