Hello @Renuka_Munjal, welcome to the QuickSight Community! Maybe if you tried using the denseRank function instead it would work with the visual. What else are you putting in the field wells for your visual?
Not giving SQl error now, but giving same ranks for all programs.
Basically what i want to do is to create two types of ranks:
ProgramRankUsage : Rank of a program based on metric count.
2, ProgramRankCost : Rank of a program based on cost.
But now i am getting rank 1 for all the programs.
What i want is for eg. ProgramRankUsage, i want that for all the similar programs , metric count gets summed, and accordingly the program with max metric count sum gets rank 1, and so on.
And i want unique ranks for all the programs.
Hi @Renuka_Munjal - Welcome to AWS QuickSight community and thanks for posting this interesting question. Is it possible to share sample data and expected output. This will help community member to replicate and guide you the solution.
Before you create a scatter plot, I suggest putting your calculated fields in a table visual first. This will help us figure out if the issue is with the particular visual type that you chose or with the calculated fields themselves.
What happens if you put the calculated fields with the rank function in a table visual?
put into table visual, still Rank coming as 0 for all.
There are multiple rows for a single program, what i have done is created a calculated field SumofMetricCount, to sum metric count for all unique programs, now i want rank of programs based on SumofMetricCount, basically for eg, here output should have been something like this :
There are multiple rows for a single program, what i have done is created a calculated field SumofMetricCount, to sum metric count for all unique programs, now i want rank of programs based on SumofMetricCount, basically for eg, here output should have been something like this :
Nvm, I know what’s your with your calculated field. You need to use your entire dataset instead of Program as your partition, i.e. don’t put anything inside the square brackets.
Basically what my real use case is, I want to divide programs into 4 types of categories :
I want to divide programs into 4 categories in Scatter plots:
Low Usage - High Cost
Low usage - Low Cost
High Usage - High Cost
High Usage - Low Cost
based on these two ranks ProgramRankUsage and ProgramRankCost
Putting Program as Label,
was thinking to a Cost-Usage Category as calculated field in Color, so that program with unique ranks can be divided into 4 categories.
But if ranks would be same, not sure how to do that.
Hello @Renuka_Munjal, would you mind posting your last comment as a new question in the QuickSight community? That way you will be at the top of the priority list for a response from one of our QuickSight experts and it can be searched separately from your original post in the community. Feel free to attach a link to this post to give context to your question. Thank you!