Forum Discussion
Krishna09
Helper III
2 years agoFilter fiscal year data based on two date columns
Hello all, In Table 1, there are two date fields(one is start and expiration date) and one ID field. I have a other table with calender date, month, year, fiscal year columns. I need to creat...
- Anonymous2 years ago
Hi Krishna09 ,
You can simply add it to the visual's filter and set the condition equal to 1.Best Regards,
Gao
Community Support Team
Anonymous
2 years agoNot applicable
Hi Krishna09 ,
You can simply add it to the visual's filter and set the condition equal to 1.
Best Regards,
Gao
Community Support Team
Krishna09
Helper III
2 years agoHello Anonymous ,
I used the formulae you mentioned, but it works only when I use in table filter.
--- it is not working if I mention it, then the table is filtered only based on start date.
--- AND it is also not working in pie or other visuals.
I have multiple tables connected to this visuals.
Below is the experssion I am using.
ContractExp_year = CALCULATE(COUNTX(filter('ContractExpiration','ContractExpiration'[[PCW]]Contract (Effective Date)]<= MAX(FiscalYearfFromOctober[Date])&&
'ContractExpiration'[[PCW]]Contract (Expiration Date)]> MAX(FiscalYearfFromOctober[Date])),'ContractExpiration'[[PCW]]Contract (Contract Id)]),
CROSSFILTER(FiscalYearfFromOctober[Date],'ContractExpiration'[[PCW]]Contract (Effective Date)],None))