Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
arpitkharkia
Creator III
Creator III

Formula as dimension

I have the following expression in the front end:

count({<STATUS_CD=13>}OP)/count(CLAIM_NO)


I need the output of the above expression to be bucketized into 5 buckets of 20% each. Then i have to use that dimension in a chart. I tried using a variable but not able to apply.


Help appreciated!

1 Solution

Accepted Solutions
tresesco
MVP
MVP

May be like:

Class(Aggr(count({<STATUS_CD={13}>}OP)/count(CLAIM_NO), YourDimension), 0.2)

View solution in original post

13 Replies
Anil_Babu_Samineni

Your expression this?

count({<STATUS_CD={13}>} OP)/count(CLAIM_NO)


Note - How you want to show bucket. Can you explain little more


Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
tresesco
MVP
MVP

May be like:

Class(Aggr(count({<STATUS_CD={13}>}OP)/count(CLAIM_NO), YourDimension), 0.2)

arpitkharkia
Creator III
Creator III
Author

so this is formula to calculate HR. The result will be in percentage so i want to have buckets of percent and show how many case falls in each of the bucket. so how many cases are there for my HR in 0-20% and so on.

arpitkharkia
Creator III
Creator III
Author

You want me to this in the front end as calculated dimension or through resident load in the script?

tresesco
MVP
MVP

Front-end?

arpitkharkia
Creator III
Creator III
Author

Sorry if there is any confusion. So i have to use it in the script right?

tresesco
MVP
MVP

You CAN do it in front-end itself.

arpitkharkia
Creator III
Creator III
Author

its working just fine. Thanks a lot. One more thing i want to label the different classes accordingly. How can i do that?

tresesco
MVP
MVP

You can probably do so using string manipulation functions. Try to share a sample explaining your expected output, may be I could help better.