Forum Discussion
joshua1990
Post Prodigy
3 years agoFilter values based on second calendar table
Hi experts!
I have a sales table linked to a calendar table.
This values are displayed in a matrix in this format:
2023-Jan
2023-Feb
2023-Mar
...
...
...
...
...
...
......
tamerj1
Community Champion
3 years agoHi joshua1990
Assuming 'Cycle' table is a disconnected table, please try
Cycle Sales =
CALCULATE (
[Sales Amount],
KEEPFILTERS ( 'Date'[Date] <= MAX ( Cycle[Date] ) )
)joshua1990
Post Prodigy
3 years agoHi, this is not working. This is the result:
| Cycle | 2023-Jan | 2023-Feb | 2023-Mar | ... | ... | ... | ... | ... | ... | ... |
| A | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 |
| B | 500 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 |
| C | 0 | 600 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 |
As you can see for cycle "C" I get 0 for 2023-Jan. But there should be a value of 500
- tamerj13 years ago
Community Champion
Try with MIN instead of MAX
- joshua19903 years ago
Post Prodigy
Still the same issue
- tamerj13 years ago
Community Champion
What is the date for A?