Forum Discussion

qmestu's avatar
qmestu
Helper IV
1 year ago
Solved

Getting the latest value per date and using intervals

Hi,

 

I have the following sample data:

quarterparameterdatevalue
1TIND0331/01/20256
1TIND0328/02/20254
1TIND0331/03/20253
2TIND0330/04/20252
2TIND0331/05/20256
1TIND0131/01/20252
1TIND0128/02/20253
1TIND0131/03/20254
2TIND0130/04/20254
2TIND0131/05/20257

 

I also have the following data with goals for each parameter per quarter:

parameterquartergoal1goal2goal3goal4
IND011T0125
IND012T0125

 

How can i create a measure that returns the value of the latest parameter for each quarter (the most recent date) and determines which goal its surpassing? I have also connected a relationship between the two tabels, by combining quarter and parameter in a column.

 

Thanks.

6 Replies