Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
In my example below, I am trying to format the AgeOfRequest when % Complete >= 98.5%. Any suggestions would be helpful.
thank you.
AgeOfRequest | %Complete |
100.00% | |
0.00 | 17.09% |
1.00 | 28.69% |
2.00 | 40.47% |
3.00 | 59.71% |
4.00 | 77.68% |
5.00 | 96.67% |
6.00 | 98.26% |
7.00 | 98.87% |
8.00 | 99.18% |
9.00 | 99.37% |
May be use this expression for your dimension and expression:
If(Expression >= 0.985, Yellow())
You can also use any variation of Yellow using RGB() function
Thank you but, it didn't work. I am using a straight table with the Dimension AgeOfRequest, the Expression is
Sum(%Complete) I have checked the Relative and Full Accumulation boxes in the Expression. I want to identify the result that is displayed. Do you have any other ideas? Appreciate the help.
If you are unable to do it, would you be able to provide some sample data in order to help you better
I have a fondness for data model solutions, so perhaps something like the attached. The data model handles the accumulation so that we can get the right percentages without using above(), full accumulation, relative, or other chart tricks. This uses a linkage table to connect the age of request to all requests at or younger than that age.
%Complete: count(CompletedRequest)/count({1} total CompletedRequest)
Background Color: if(%Complete>=.985,yellow())
Using {1} is perhaps overly simplistic. But the whole thing is overly simplistic. I'm just trying to get the idea across.
I'm not clear if my sample data at all resembles yours, but I hope that %Complete isn't a field in the data model, even if it looks like you're saying it is. I calculate percentages in charts, not store them as data. If you can't figure out how to adapt this to your data, give us a better idea what your data model looks like.
It responds correctly to selections in the AgeOfRequest, something to be careful of with some of the possible solutions. It should also calculate very quickly even on large data sets, which may or may not be relevant to your case. On the down side, having a HiddenAgeOfRequest is clunky and can cause headaches itself.
The linkage table is very much like the AsOf table that we often suggest for doing time period summations, so if you want more information, such as alternate ways of building the linkage table, searching for AsOf should get you some.