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

how to remove unwanted data from a field??

Hi All,

I have a field named Defect_type in which many type of defects are listed, but i need to take only two type of defect say NDR and NDF

I want to display only NDR and NDF in Defect_type field and all other defects should not affect my charts and reports.....

Suppose i have a chart to show unit processed according to NDR or NDF then the unit processed should be for NDR or NDF only not for other....

It should be just like i have only two type of defect_type NDR and NDF

please help me out....

Thanks

1 Solution

Accepted Solutions
Not applicable

On any Chart,

go to Used dimension. Select the 'Defect_type' field dimension and Click on 'Edit'. There you type the following if condition:

=if(Defect_type='NDR' of Defect_type='NDF',Defect_type).

And finally, select 'Supress When Value is Null' on the 'Setting for Selected Dimensions' area.

Regards.

View solution in original post

5 Replies
Not applicable

Hi,

you can make a selection in the script by using a where clause:

where match(Defect_type, 'NDR','NDF')>0

Regards,

Björn

Not applicable

Hi, a simple way could be to create a INLINE table with 2 fields like this

LOAD

* INLINE [
Defect_type, My_Defect_type
NDR,NDR

NDF,NDF


and use My_Defect_type as dimension.

sushil353
Master II
Master II
Author

hi Bjorn

I have already loaded the data...i think your solution works during loading...

Not applicable

Hi,

yes my suggestion works while loading.

If you only want to do it in a chart you can try the solution mentioned by hakanbjerke or you make a set analyis in the chart expression:

sum({<Defect_type={'NDR','NDF'}>}value)

Regards,

Björn

Not applicable

On any Chart,

go to Used dimension. Select the 'Defect_type' field dimension and Click on 'Edit'. There you type the following if condition:

=if(Defect_type='NDR' of Defect_type='NDF',Defect_type).

And finally, select 'Supress When Value is Null' on the 'Setting for Selected Dimensions' area.

Regards.