Forum Discussion
Retrive a value from multiple matching records
Rajat, First, please do not cross-post in every forum, that's not cool. A lot of us use the "All Topics" view and so we see your post four times and have no idea which one to respond to.
Second, try something like this:
IF(COUNTAX(FILTER('Task Allocation'[Task status]='In Progress'),[Task ID]) = 0,"In progress", "Completed)
- greggyb10 years agoResident Rockstar
Status = IF( ISEMPTY( CALCULATETABLE( 'Task Allocation' ,'Task Allocation'[Task Status] = "In Progress" ) ) ,"Completed" ,"In Progress" )This assumes a relationship between 'Project Master' and 'Task Allocation'.
CALCULATETABLE() will respect the row context of [Project ID] from 'Project Master' and give us the matching rows from 'Task Allocation'. Additionally, we apply a filter to return only rows where 'TaskAllocation'[Task Status] = "In Progress". We test the resulting table with ISEMPTY() which tests what it says. If there are no rows, we know the project is complete. If there are rows with "In Progress", then the project is in progress.
- Rajat10 years agoFrequent Visitor
thanks Greg_Deckler for reply and i will not do it again.