Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
LDR
Creator II
Creator II

MAX value in alternate state field

Hi to everyone,

I'm trying to find the way to obtain the MAX value for some field that is assigned to a specific Alternate State.

 

First at all let me show you my data:

Data:
Load *
Inline [
ReportingPeriod
2022-09
2022-08
2022-07
2022-06
];

I have created two Alternate States: A and B. I have created two Filter Pane charts for the same field but with a differente Alternate State assigned.

LDR_0-1663760297898.png

In a table chart I want to show how many items were selected for each alternate state (it works) and the MAX value selected for Alternate State B (it doesn't work).

LDR_1-1663760385721.png

Instead of MAX({B}ReportingPeriod) I tried some other ways with no luck:

MAX({<ReportingPeriod=B::ReportingPeriod>}ReportingPeriod)

or

MAX({B<ReportingPeriod=$::ReportingPeriod>}ReportingPeriod)

 

Any idea about what I'm doing wrong?

 

Thanks in advance

 

 

 

Labels (3)
1 Solution

Accepted Solutions
LDR
Creator II
Creator II
Author

OMG! Thanks a lot Rubén. I forgot that I was playing with alphanumerical values instead of numbers.

View solution in original post

2 Replies
rubenmarin

Hi, probably ReportingPeriod is being loaded as a text, not a number, so instead of Max() you can use Maxstring(). Or convert to number using Sate() and Date#() functions.

LDR
Creator II
Creator II
Author

OMG! Thanks a lot Rubén. I forgot that I was playing with alphanumerical values instead of numbers.