Forum Discussion
Calculated colum with RELATEDTABLE
Hi,
I have two tables with relation: many to many; filter in both directions: VKM1; T527.
In table T527 I must create column to summarize [value] with the condition, to only add those values, that in table T527 have exact strings in columns [Cca], [Ccod], as in table VKM1
The result should look like in column T527[SUM]
| VKM1[Ccod] | VKM1[Cca] | T527[Cca] | T527[Ccod] | T527[value] | T527[SUM] |
| a | 1075 | 1075 | a | 15 | 15 |
| a | 1075 | 1075 | b | 22 | |
| b | 1074 | 1074 | a | 66 | |
| c | 1044 | 1074 | b | 44 | 44 |
| c | 1044 | 1074 | c | 55 | |
| 1044 | a | 77 | |||
| 1044 | c | 14 | 41 | ||
| 1044 | c | 27 | 41 |
Ho do I do it?
1 Reply
- Greg_DecklerCommunity Champion
Anonymous - Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.