Forum Discussion

andreazambon's avatar
andreazambon
Icon for Helper V rankHelper V
2 years ago

Show only the second ranked value for a Monthly Graph

Hi there. 

 

With the advanced filter "First N" I can show the First N values by a measure. 

 

For example, I can show the First 3 production lines based on qty produced. 

According to this, I'm able to show the first one or the last one value. 

But what if I need to show ONLY the second value (or third, ecc)? I have to build 3 graphs about the monthly trend of a measure, with data related to:

 

-the first one value (e.g. the first line)

-the second one

-the third one. 

 

Take in mind that build 3 graph is, in this case, mandatory. I cant play with slicers because i'm building a printable report.

 

edit: I've tried with RANKX() function and it works quite fine, but I have a problem. If I put the month, then the graph shows me the ranked value of that month:

 

 

 

In this image, each color is a production line. I guess that the solution here is to create a measure with the sum of the qty produced for the year, but I have more than one year in my database. How can I, in a new measure, summarize the qty produced based on year?

3 Replies