u/talidass

Use two date filters on different columns in table

Use two date filters on different columns in table

https://preview.redd.it/geg1m5gp0i2h1.png?width=766&format=png&auto=webp&s=4b0b965ef7130c93db07d0a443988d956cfacb4c

I'm tasked in creating a table where the users can change the year and quarter in one filter, and the first column will fetch the cost for that period. The second quarter + year filter will work the same but fetch the cost for that specific period.
Lastly we want to evaluate the difference between the columns and present the change in %

I have one table with nr, cost and date and a separate date table where year and quarter are mashed together.
I'm at a loss at how to solve this without duplicating the fact table.

https://preview.redd.it/dmzjt2a1ch2h1.png?width=789&format=png&auto=webp&s=d0be8bd17b941aba2b78d000a83e0094ef874173

reddit.com
u/talidass — 1 day ago