Mathieu Vézina
08/02/2023, 1:17 PM[{1,Summer}, {2, Autumn}, {3,Winter}, {4, Spring}]
I have a table Month with (PK: id and Name)
[{1, January} ... {12, December}]
I have a Parent Child Table (SeasonMonths) with (PK SeasonId (FK), PK MonthId (FK))
[{1,6}, {1,7},{1,8},{1,9}, {2,9}....{4,6}] (So in this table you can see that a Month can be in 2 seasons
And finally I have Order table (PK: OrderID, MonthId(FK), Amount, OrderDate, ....)
[{1,1,100$,2023-01-01}] So this first order is in first January and we assume that is in Winter
When I create LDM I would like in my Dashboard to filter by Season to see the month available and filter by month to see the total of order or amount by each month
Currently when I do this without any manipulation the Season Filter, filter the Month perfectly but to Sum is not good because it keep all for examples
If I have
January 5
February 3
March 4
April 10
May 15
June 6
July 7
August 1
September 20
October 30
November 40
December 50
Total : 291 order
And filter season for Winter I see Month (December, January, February, March) with All check the total still 291 order but In my mind the total does be (62).
When I check December I see total 50, January total 5 and I I check January and December I see 55 but when I click all the total return to 291, what is my problem ?Michal Hauzírek
08/02/2023, 1:46 PMMathieu Vézina
08/02/2023, 1:52 PMMathieu Vézina
08/02/2023, 7:03 PM