March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Team,
I have rows that have the name as:
arvind_m_vimal
ashish_d_chopra
harsh_t_paleja
and I need to assign it as if _m_ appears it reflects as Mobile, if _d_ appears it reflects as desktop and if _t_ appears then reflects as tablet otherwise hybrid.
Thanks,
Arvind
Solved! Go to Solution.
Try this:
Column =
IF (
SEARCH ( "_m_", 'Table'[Name], 1, 0 ),
"Mobile",
IF (
SEARCH ( "_d_", 'Table'[Name], 1, 0 ),
"Desktop",
IF ( SEARCH ( "_t_", 'Table'[Name], 1, 0 ), "tablet", "hybrid" )
)
)
Regards,
Vivek
If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂
https://www.vivran.in/
Try this:
Column =
IF (
SEARCH ( "_m_", 'Table'[Name], 1, 0 ),
"Mobile",
IF (
SEARCH ( "_d_", 'Table'[Name], 1, 0 ),
"Desktop",
IF ( SEARCH ( "_t_", 'Table'[Name], 1, 0 ), "tablet", "hybrid" )
)
)
Regards,
Vivek
If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂
https://www.vivran.in/
Try Like
Switch(true(),
search("_m",table[Name],1,0)>0 ,"Mobile",
search("_d",table[Name],1,0)>0 ,"Desktop",
"Hybrid"
)
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Datanaut Connect on Linkedin
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
90 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |