Forum Discussion
Combining Totals from 2 different tables
Hi,
Thank you for your response.
The table have a date column. It is the Qtr 1, Qtr2, etc. You can expand/drill those columns to display by months. As I mentioned, the dates are in this format: (eg. 1/1/23, 2/1/23, etc)
| Qtr 1 | Qtr 2 | ||||
| January | February | March | April | May | June |
They are not in same data source. The Target table is a user defined table, while the Actual table comes from another live source though they reside on same database.
Thanks.
pls provide some sample data of two tables.
- Anonymous3 years agoNot applicable
Hi,
Sorry but it seems that I cant attach an excel or zip file on here so, I can only give a screenshot of the sample data. Please see below images.- ryan_mayu3 years ago
Super User
Anonymous
pls see the attachment below
- Anonymous3 years agoNot applicable
Hi ryan_mayu ,
I tried to do your sample, however I have a zero result.
Actually, I am newbie in PowerBI and started using the application 3 days ago.
All other reports were already done exept of the final result which is computation of Actual/Target.
So here are the steps I did:
1. Create a department tableDepartment = DISTINCT('Target Name'[Department])2. Create a Date TableSelection Date = CALENDAR(MIN('Target'[R72 Date]),MAX('Target'[R72 Date]))3. On the actual value table, I created the calculation column:Performance = sum('Actual Data'[Total Processed)/SUM('Target'[TargetValue])4. From the relationship connection, I linked "R72 Date" and "Actual Date" to step 2 date, and 'Target'[Department] and 'Actual Data'[Department] to step 1 department.
5. Finally From a matrix table:
Rows = (Created Department)Column = (Created Date)Values = (Performance Calculation)Is there any steps I missed?