Forum Discussion
Bring one total column from a table into another
- 9 years ago
Hi Voose,
Try to make a ID column in each of the table composed by region and month, them do a relation between the two table with that ID and you can the make a Column or use the values from the two table directly.
the Column will look something like this
Column = CALCULATE(SUM(Target[Target Utilisation]);RELATEDTABLE(Target))
Regards
MFelix
Hi MFelix,
Trying to finish this off to create a % total on the end see below:
| Attribute | Region | Days Worked | ID Creation | Total Working days by month and Region | % of target achieved |
| Total | APAC | 395 | TotalAPAC | 0 | |
| Total | EMEA | 499 | TotalEMEA | 0 | |
| Total | Americas | 109 | TotalAmericas | 0 | |
| Mar | APAC | 80 | MarAPAC | 71.5 | |
| Mar | EMEA | 97 | MarEMEA | 132.25 | |
| Mar | Americas | 5 | MarAmericas | 74.75 | |
| Apr | APAC | 81 | AprAPAC | 65 | |
| Apr | EMEA | 90 | AprEMEA | 115 | |
| Apr | Americas | 38 | AprAmericas | 65 | |
| May | APAC | 55 | MayAPAC | 74.75 | |
| May | EMEA | 80 | MayEMEA | 132.25 | |
| May | Americas | 35 | MayAmericas | 74.75 | |
| Jun | APAC | 18 | JunAPAC | 65 | |
| Jun | EMEA | 70 | JunEMEA | 126.5 | |
| Jun | Americas | 23 | JunAmericas | 71.5 | |
| Jul | APAC | 10 | JulAPAC | 74.75 | |
| Jul | EMEA | 42 | JulEMEA | 120.75 | |
| Jul | Americas | 4 | JulAmericas | 68.25 | |
| Aug | APAC | 30 | AugAPAC | 71.5 | |
| Aug | EMEA | 32 | AugEMEA | 132.25 | |
| Aug | Americas | 2 | AugAmericas | 74.75 | |
| Sep | APAC | 30 | SepAPAC | 68.25 | |
| Sep | EMEA | 32 | SepEMEA | 120.75 | |
| Sep | Americas | 2 | SepAmericas | 68.25 | |
| Oct | APAC | 30 | OctAPAC | 74.75 | |
| Oct | EMEA | 26 | OctEMEA | 126.5 | |
| Oct | Americas | 2 | OctAmericas | 71.5 | |
| Nov | APAC | 30 | NovAPAC | 68.25 | |
| Nov | EMEA | 35 | NovEMEA | 126.5 | |
| Nov | Americas | 2 | NovAmericas | 71.5 | |
| Dec | APAC | 30 | DecAPAC | 71.5 | |
| Dec | EMEA | 26 | DecEMEA | 120.75 | |
| Dec | Americas | 2 | DecAmericas | 68.25 |
This is the formula im using -> % of target achieved = 'Summarised Actuals by Month'[Total Working days by month and Region]/'Summarised Actuals by Month'[Days Worked]
However I'm getting a circular dependancy error.... unsure why?
Hi Voose,
Keep it simple if you add the colum you need in your visual and chosse quick calc the Power BI will allow you to add the % over grand total,
Regards Mfelix
- Voose9 years ago
Helper III
This is what my visual looks like currently, if I try and add a quick calc to the green line and calculate as % of grand total it gives me this :
Or if I do it the other way around I get a flat line also - the green line should be a % of the black line
Thanks for your patience :)
Voose
- MFelix9 years ago
Super User
The two line aren't in the same format since one is % and the other total numbers you need to have ine in coluns and the other in line choose the bar and line chart and it will work
Regards
Mfelix- Voose9 years ago
Helper III
Hi MFelix,
So I want Days worked to be a % of Total working days by month for exmaple in this picture you can see that April is about 80% and in June its around 40%, I could like to see that on a single line graph,
Does that make sense? I shouldn't have 2 values on the graph, just 1 and that 1 value should be the % of these two against each other
Thanks
Voose