Taras
asked on
CR Parameter for Null and empty string
I have issue with a parameter in CR XI R2 ver.
Report has several fields and several parameters.
One of Parameter is used against a field that could have next values:
Full,
Three quarter full,
Half full,
One quarter full.
Unknown.
Problem is that this field could have value Null and it could be empty too.
Case is more complicated as user wants to show particular record even if this field do not have value it means if record for this field has value Null or is empty and show on report as Unknown.
It means that Unknown actually covers three values first sting: Unknown ,second: Null and thired empty string.
Any Idea how to do this?
Report has several fields and several parameters.
One of Parameter is used against a field that could have next values:
Full,
Three quarter full,
Half full,
One quarter full.
Unknown.
Problem is that this field could have value Null and it could be empty too.
Case is more complicated as user wants to show particular record even if this field do not have value it means if record for this field has value Null or is empty and show on report as Unknown.
It means that Unknown actually covers three values first sting: Unknown ,second: Null and thired empty string.
Any Idea how to do this?
ASKER
What is with bracket after IsNull
(
(
{?Parameter} = "Unknown"
AND
(
IsNull({Field})<<<<
OR
{Field} = ""
)
)
OR
{?Parameter} = {Field}
)
(
(
{?Parameter} = "Unknown"
AND
(
IsNull({Field})<<<<
OR
{Field} = ""
)
)
OR
{?Parameter} = {Field}
)
Database felds and Crystal objects are inserted with { } around them.
mlmcc
mlmcc
ASKER
mlmc.
Count brackets opened and count brackets closed.????
something is missing.
Count brackets opened and count brackets closed.????
something is missing.
What error are you getting?
Can you copy and paste your formula?
mlmcc
Can you copy and paste your formula?
mlmcc
ASKER
Before I had.
{Field1} = {?Par1} and
not {Field2} and
{field3}= {?Par3} and
{field4} in {?Date From:} to {?Date To:} and
{field5} in{?Amount_From:}to {?Amount_To:} and
{field6} = {?Par6} and
{field7} = "" and
{field8} = {?Par8} and
{field9} = {?Par9}
Now I have as you sugested
{Field1} = {?Par1} and
not {Field2} and
(
(
{?Par3} = "Unknown"
AND
(
IsNull({field3}
OR
{field3} = ""
)
)
OR
{?Par3} = {field3}
)
and
{field4} in {?Deadline Date From:}to{?Deadline Date To:} and
{field5} in{?Amount_From:}to {?Amount_To:} and
{field6} = {?Par6} and
{field7} = "" and
{field8} = {?Par8} and
{field9} = {?Par9}
I am geting error missing ")"
{Field1} = {?Par1} and
not {Field2} and
{field3}= {?Par3} and
{field4} in {?Date From:} to {?Date To:} and
{field5} in{?Amount_From:}to {?Amount_To:} and
{field6} = {?Par6} and
{field7} = "" and
{field8} = {?Par8} and
{field9} = {?Par9}
Now I have as you sugested
{Field1} = {?Par1} and
not {Field2} and
(
(
{?Par3} = "Unknown"
AND
(
IsNull({field3}
OR
{field3} = ""
)
)
OR
{?Par3} = {field3}
)
and
{field4} in {?Deadline Date From:}to{?Deadline Date To:} and
{field5} in{?Amount_From:}to {?Amount_To:} and
{field6} = {?Par6} and
{field7} = "" and
{field8} = {?Par8} and
{field9} = {?Par9}
I am geting error missing ")"
You are missing the ) on the IsNull
IsNull( {Field1} )
mlmcc
IsNull( {Field1} )
mlmcc
ASKER
It is showing them now but not as "Unknown" just as empty fileds.
I need to show: empty, null and Unknown as Unknown in report???
I have question regarding this approach.
As parameter work on base to exclude all other records if they do not have parameter value.
I have users that sometimes ask for parameter for a filed to be present as option but not exclude records that have no entry or Null in that filed. They still want to see them beside selected parameter fileds.
With your suggestion is this way that I can apply this option on any filed that has parameter in report, and it will pull empty or Null filed value out, beside selected values for parameter filed?
Do I sound confused.
I need to show: empty, null and Unknown as Unknown in report???
I have question regarding this approach.
As parameter work on base to exclude all other records if they do not have parameter value.
I have users that sometimes ask for parameter for a filed to be present as option but not exclude records that have no entry or Null in that filed. They still want to see them beside selected parameter fileds.
With your suggestion is this way that I can apply this option on any filed that has parameter in report, and it will pull empty or Null filed value out, beside selected values for parameter filed?
Do I sound confused.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
mlmcc :-)
thanks a lot.
I will post another question for rest.
thanks a lot.
I will post another question for rest.
(
(
{?Parameter} = "Unknown"
AND
(
IsNull({Field}
OR
{Field} = ""
)
)
OR
{?Parameter} = {Field}
)
mlmcc