Forum Discussion
FC_USER
3 years agoNew Member
Cannot convert value '' of type Text to type Integer.
I want to create a waterfall chart based on two selected years.
When comparing the results of 2019 and 2020, I want to sum the number of data before 2019 and add the data added in 2020.
I want to get all the data before 2019, but when I enter the function below, an error "Cannot convert value '' of type Text to type Integer." is displayed. Why is this?
wtf_test = CALCULATE(COUNTROWS(yozai),FILTER(yozai,yozai[last_action_date] < dateTable[selectedYears]))
----------------------------------------------------------------
------------------------------------------------------------------------
4 Replies
- Mahesh0016
Super User
- FC_USERNew Member
Thanks.But The result did not
Do you know how to keep later years from multiple selected years in slicer as values for comparison?
wtf_前年度繰越 = CALCULATE(COUNTROWS(yozai),FILTER(yozai,yozai[last_action_date] < dateTable[selectedyear]))- Mahesh0016
Super User
Please Try this one , if you compare multiple Year Selected
wtf_前年度繰越 = CALCULATE(COUNTROWS(yozai),FILTER(yozai,yozai[last_action_date] IN {dateTable[selectedyear]}))