Forum Discussion
Drewz
4 years agoHelper II
Combining Data in Table Visual from Multiple Source Tables
Hi Power Bi Community, I'm a bit stuck and I've been going round in circles. Really hope someone can help. The data I'm given comes in 3 tables as shown below. If a project is simple, it can just ...
- Anonymous4 years ago
Hi Drewz ,
You can try the measure below to meet your needs.
BudgetTotal = SUM ( 'Task'[Task Budget] ) + CALCULATE ( SUM ( Projects[Project Budget] ), FILTER ( 'Projects', [Project ID] = MAX ( 'Task'[Project ID] ) ) )Charge Amount = CALCULATE ( SUM ( 'Time Entry'[Charge Amount] ), FILTER ( 'Time Entry', 'Time Entry'[Project ID] = MAX ( 'Projects'[Project ID] ) && 'Time Entry'[Task ID] = MAX ( 'Task'[Task ID] ) ) )PL = [BudgetTotal]-[Charge Amount]Then you can get a result like this:
A demo for your reference is attached.
Hope it helps,
Community Support Team _ CaitlynIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Drewz
4 years agoHelper II
Just to clarify, then relationships are linked to the Proejcts table via Project ID. I can't link Task IDs in Time Entry and Tasks as it would be a many to many relationship.