cancel
Showing results for
Did you mean:
Member

## Measure check

Dear community,

Below is my measure, is there a way i can simplify this?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team

## Re: Measure check

hi, @vjnvinod

and "Pursuit Team" coloumn has more than 1 names in it, you need to use SEARCH Function in it.

```BDE check =
IF (
'Sales and Pipeline Full Data Ex'[Global Business Development Executive]
IN {
"Valencia, Gonzalo",
"Webster, Julianne",
"DiBlasio, Wendy",
"Maliepaard, Yolanda",
"Geyer, Jody",
"Croft, Ben",
"Gardner, Toby"
},
"yes bde",
IF (
'Sales and Pipeline Full Data Ex'[Pursuit Leader]
IN {
"Valencia, Gonzalo",
"Webster, Julianne",
"DiBlasio, Wendy",
"Maliepaard, Yolanda",
"Geyer, Jody",
"Croft, Ben",
"Gardner, Toby"
},
"yes pl",
IF (
'Sales and Pipeline Full Data Ex'[Identified By]
IN {
"Valencia, Gonzalo",
"Webster, Julianne",
"DiBlasio, Wendy",
"Maliepaard, Yolanda",
"Geyer, Jody",
"Croft, Ben",
"Gardner, Toby"
},
"Yes-Identified By",
IF (
SEARCH (
"Valencia, Gonzalo",
'Sales and Pipeline Full Data Ex'[Pursuit Team],
1,
0
) > 0
|| SEARCH (
"Webster, Julianne",
'Sales and Pipeline Full Data Ex'[Pursuit Team],
1,
0
) > 0
|| SEARCH (
"DiBlasio, Wendy",
'Sales and Pipeline Full Data Ex'[Pursuit Team],
1,
0
) > 0
|| SEARCH (
"Maliepaard, Yolanda",
'Sales and Pipeline Full Data Ex'[Pursuit Team],
1,
0
) > 0
|| SEARCH ( "Geyer, Jody", 'Sales and Pipeline Full Data Ex'[Pursuit Team], 1, 0 ) > 0
|| SEARCH ( "Croft, Ben", 'Sales and Pipeline Full Data Ex'[Pursuit Team], 1, 0 ) > 0
|| SEARCH (
"Gardner, Toby",
'Sales and Pipeline Full Data Ex'[Pursuit Team],
1,
0
) > 0,
"Yes-PT",
"No"
)
)
)
)```

By the way, you could use this tool to format your dax formula.

https://www.daxformatter.com/#

Note:  Please understand that this tool is provided “AS IS” with no warranties or guarantees , and confers no rights.

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
7 REPLIES 7
Super User

## Re: Measure check

You have simplified your question. But to provide any suggestion, Without any background of what exactly you are trying to do with this or provide with some sample data. Noone will have a scooby doo about this massive measure.

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

Proud to be a Datanaut !

Member

## Re: Measure check

below is my 4 coloumns

and my table name is

Sales and Pipeline Full Data Ex'[Global Business Development Executive.

i want to create a new coloumn, with  the below condition

1) if my coloumn

"Global Business Development Executive" contains ,
Valencia, Gonzalo
Webster, Julianne,
DiBlasio, Wendy,
Maliepaard, Yolanda,
Geyer, Jody then my new coloum should show me "Yes-BDE"

and if my coloumn
Webster, Julianne, then my new coloum should show me "
Yes-PL

and similarly for other 2 fields as well

the above measue works fine for me, except for coloumn Pursuit team because it has name combined something like this

Jones, Colin;Chen, Cecile;

Super User

## Re: Measure check

@vjnvinod  Thanks for this. Is it possible to have some sample data to test on. Also, why can't you have a calculated column to derive this logic by having all these values into different list variables and then flagging them appropriately.

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

Proud to be a Datanaut !

Super Contributor

## Re: Measure check

Hi, you can start to reduce using IN

Example:

IF (Table1[NameColumn] IN {"Angela", "Betty", "Karl"} , "TOP",     Continue

Regards

Victor

Lima - Peru

Proud to be a Datanaut!

Member

## Re: Measure check

my new measure is below

BDE check = IF('Sales and Pipeline Full Data Ex'[Global Business Development Executive] IN {"Valencia, Gonzalo","Webster, Julianne","DiBlasio, Wendy","Maliepaard, Yolanda","Geyer, Jody","Croft, Ben","Gardner, Toby"},"yes bde",IF('Sales and Pipeline Full Data Ex'[Pursuit Leader] IN {"Valencia, Gonzalo","Webster, Julianne","DiBlasio, Wendy","Maliepaard, Yolanda","Geyer, Jody","Croft, Ben","Gardner, Toby"},"yes pl",IF('Sales and Pipeline Full Data Ex'[Identified By] IN {"Valencia, Gonzalo","Webster, Julianne","DiBlasio, Wendy","Maliepaard, Yolanda","Geyer, Jody","Croft, Ben","Gardner, Toby"},"Yes-Identified By",IF('Sales and Pipeline Full Data Ex'[Pursuit Team] IN {"Valencia, Gonzalo","Webster, Julianne","DiBlasio, Wendy","Maliepaard, Yolanda","Geyer, Jody","Croft, Ben","Gardner, Toby"},"Yes-PT"))))

there is one more issue here

i see above measure is not reading my "Pursuit Team" coloumn

below is my pursuit team coloumn, possibly because i have more thn 1 names in the field,

is there a way we can sort this?

Member

## Re: Measure check

thanks Manohar,

it was a small "IN" function to reduce the complexity.

Can you read my last thread on this topic, not sure if you can find a solution on tht?

Community Support Team

## Re: Measure check

hi, @vjnvinod

and "Pursuit Team" coloumn has more than 1 names in it, you need to use SEARCH Function in it.

```BDE check =
IF (
'Sales and Pipeline Full Data Ex'[Global Business Development Executive]
IN {
"Valencia, Gonzalo",
"Webster, Julianne",
"DiBlasio, Wendy",
"Maliepaard, Yolanda",
"Geyer, Jody",
"Croft, Ben",
"Gardner, Toby"
},
"yes bde",
IF (
'Sales and Pipeline Full Data Ex'[Pursuit Leader]
IN {
"Valencia, Gonzalo",
"Webster, Julianne",
"DiBlasio, Wendy",
"Maliepaard, Yolanda",
"Geyer, Jody",
"Croft, Ben",
"Gardner, Toby"
},
"yes pl",
IF (
'Sales and Pipeline Full Data Ex'[Identified By]
IN {
"Valencia, Gonzalo",
"Webster, Julianne",
"DiBlasio, Wendy",
"Maliepaard, Yolanda",
"Geyer, Jody",
"Croft, Ben",
"Gardner, Toby"
},
"Yes-Identified By",
IF (
SEARCH (
"Valencia, Gonzalo",
'Sales and Pipeline Full Data Ex'[Pursuit Team],
1,
0
) > 0
|| SEARCH (
"Webster, Julianne",
'Sales and Pipeline Full Data Ex'[Pursuit Team],
1,
0
) > 0
|| SEARCH (
"DiBlasio, Wendy",
'Sales and Pipeline Full Data Ex'[Pursuit Team],
1,
0
) > 0
|| SEARCH (
"Maliepaard, Yolanda",
'Sales and Pipeline Full Data Ex'[Pursuit Team],
1,
0
) > 0
|| SEARCH ( "Geyer, Jody", 'Sales and Pipeline Full Data Ex'[Pursuit Team], 1, 0 ) > 0
|| SEARCH ( "Croft, Ben", 'Sales and Pipeline Full Data Ex'[Pursuit Team], 1, 0 ) > 0
|| SEARCH (
"Gardner, Toby",
'Sales and Pipeline Full Data Ex'[Pursuit Team],
1,
0
) > 0,
"Yes-PT",
"No"
)
)
)
)```

By the way, you could use this tool to format your dax formula.

https://www.daxformatter.com/#

Note:  Please understand that this tool is provided “AS IS” with no warranties or guarantees , and confers no rights.

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

#### Back to School Contest

Engage and empower students with Power BI!

#### Watch Sessions On Demand!

Continue your learning in our online communities.

#### Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

#### PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Top Kudoed Authors
Users Online
Currently online: 182 members 2,235 guests
Recent signins: