Hello
I’m Adeyemi and I’d be happy to help you with your question.
The error message you're seeing is likely due to a type mismatch in your DAX formula. The RELATEDTABLE function returns a table of values, and the FILTER function expects a table as its first argument
In your formula, you're comparing [Task] from IW37Ntab with [Task] from IW47tab. If these two fields are not of the same data type, or if there's no relationship between these two tables based on the Task field, you might encounter issues
Here's a revised version of your formula that might work:
=CALCULATE(
SUM(IW37Ntab[Estimated hrs]),
FILTER(
ALL(IW37Ntab),
IW37Ntab[Task] = EARLIER(IW47tab[Task])
)
)
This formula calculates the sum of the Estimated hrs field from IW37Ntab for each task in IW47tab. The EARLIER function is used to refer to the earlier row context
Please replace IW37Ntab[Estimated hrs], IW37Ntab[Task], and IW47tab[Task] with your actual column names if they're different.
I hope this helps
Give back to the Community. Help the next person who has this issue by indicating if this reply solved your problem. Click Yes or No below
Regards
Adeyemi