Forum Discussion

danielcastro97's avatar
danielcastro97
New Member
1 year ago

Filter Values Based on Date Range in Matrix (YYYYMM Format)

Hello!

I have a table called fact_pool, which contains a numeric column named "Límite". In this table, there is a start date and an end date defined in the 'YYYYMM' format. I also have my dim_date table with the date_id column in the same format.

With this setup, I am trying to create a matrix where the columns represent months, and the values are the sum of the "Límite" column. The end user will select the years and months to analyze.

What I need to achieve is to verify if the date range defined by the start and end dates in the fact_pool table is included in the range selected by the user. That is, if fact_pool[start_date] is 202407 and fact_pool[end_date] is 202503, and the range selected by the user is between 202401 and 202412, then the "Límite" value should only be displayed for the months 202407, 202408, 202409, 202410, 202411, and 202412.

Thank you!

1 Reply