Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am try to do a simple set analysis and use greater than a variable.
count
({$<[Days in GMRC] = {"> SLA"}>}Distinct [Policy Number])
[Days In GMRC] and SLA are both variables. I can get this to work if I put a hardcoded number where the variable SLA is but that is not dynamic enough for this to work in my case.
Here is the only greater than in the set analysis documentation.
sum( {$<Year = {">1978<2004"}>} Sales )
as above, but now with a numeric search so that an arbitrary range can be specified.
I have tried single quotes no quotes and all other possibilitiesd I couold think of. Does anyone have a solution for this? I think it should be simple and I am just missing something.
Your greater than is spot on, it's your variable that is the problem.
({$<[Days in GMRC] = {"> $(SLA)"}>}Distinct [Policy Number])
I'm actually surprised that Days in GMRC is a variable and that is working. I thought only fields were allowed there.
Your greater than is spot on, it's your variable that is the problem.
({$<[Days in GMRC] = {"> $(SLA)"}>}Distinct [Policy Number])
I'm actually surprised that Days in GMRC is a variable and that is working. I thought only fields were allowed there.
Days in GMRC is a field that I created in the script. Thanks, your reply did the trick.
This is driving me crazy!
I have used the code above and it works perfectly.
I can make the selection in the field [Document Type] = REN and it shows the numbers I expect to see. I wanted to move the selection of document type in my set analysis so the user doesnt have to make that selection because they dont always know what they are looking for. When I add this to my set analysis the number is way different. What is wrong below?
If(Type = 'Renewals', count({$< [Document Type] = {"REN"}, [Days Prior to Renewal]={"<$(=min(SLA))"}>}Distinct [Item Number1]),
You went from (with REN selected in Document Type):
If(Type = 'Renewals', count({$<[Days Prior to Renewal]={"<$(=min(SLA))"}>}Distinct [Item Number1]),
To this:
If(Type = 'Renewals', count({$< [Document Type] = {"REN"},
[Days Prior to Renewal]={"<$(=min(SLA))"}>}Distinct [Item Number1]),
And you're not getting the same result? I don't see anything unusual, but it's kind of hard to see without knowing the data.
Here are a few things I'd check:
Those are just a few things to look at. It's hard without seeing the data. If you could scramble up some data and post an example of it being different, someone could probably figure it out.