Forum Discussion
FILTER on second date table
- Anonymous3 years ago
Hi joshua1990 ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2)My model relationship is as follows.
(3) We can create two measures.
Measure = var _a = IF(SELECTEDVALUE('CALENDAR Table 2'[Month])>SELECTEDVALUE('CALENDAR Table 1'[Month]) , CALCULATE( SUM('sale Table'[sales]), 'CALENDAR Table 2'[Date] < MAX('CALENDAR Table 2'[Date]) ),0) return IF(SELECTEDVALUE('CALENDAR Table 2'[Month]) =1,BLANK(),_a)(4) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi joshua1990 ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2)My model relationship is as follows.
(3) We can create two measures.
Measure =
var _a = IF(SELECTEDVALUE('CALENDAR Table 2'[Month])>SELECTEDVALUE('CALENDAR Table 1'[Month]) ,
CALCULATE(
SUM('sale Table'[sales]),
'CALENDAR Table 2'[Date] < MAX('CALENDAR Table 2'[Date])
),0)
return IF(SELECTEDVALUE('CALENDAR Table 2'[Month]) =1,BLANK(),_a)
(4) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.