Forum Discussion
Anonymous
7 years agoNot applicable
Table Variable
Hi there, I have a simplified data model with three tables. 1. account --------- ======= 2. opp( closedate dd/mm/yyyy) ---------- =========== 3. and a date table Calenda...
v-frfei-msft
7 years agoCommunity Support
Hi Anonymous ,
Does that make sense? If so, kindly mark my answer as the solution to close the case please. Thanks in advance.
Regards,
Frank
Anonymous
7 years agoNot applicable
Hi Frank,
Thanks for your reply and the follow-up. I just got another question, kindly take a look at the expression below.
If the account table is used inside COUNTROWS instead of k, I can also get the correct result. As I read it from the some other posts, the original table has nothing to do with the table generated by ADDCOLUMNS. Is that true? If so, why the account table can be filtered?
RETURN
CALCULATE( COUNTROWS(account),
FILTER( k,
[date]>= MIN( 'Calendar'[Date])
&& [date] <= MAX('Calendar'[Date])))