Forum Discussion

PBIFX200's avatar
PBIFX200
New Member
5 years ago
Solved

Calculated table based on 2 different tables.

Hello everyone, 

 

Newbie here! Any help would be very much appreciated!

 

Table 1 (unique ID)

Net amount based on uniques ID

ID net
1200
10-300
8-60
9100
12150
2560
23-60
1150
13-90
260-500
630500
30622
38-900
50-86
9550
533

 

Table 2

each Employee or Team could have multiple IDs.

 

ID Employee or team 
1Team stars
10Team stars
8Adam
9josh
12Team PBI
25clara
23james
11Team python
13Team stars
260abe
630jessica
30Team winners
38Cain
50Florence
95Oliver
5Elias
1Team stars
10Team stars
55Nancy
500Team Venus
39taylor
25Frank
69abe
11team python
76clark
66stephanie
625steven
30Team winners
44sarah
98mary
22jacob
6sven

 

Table 3 ( the result)

The result I'm seeking is an aggregated net amounts by unique (employee or team), as a Table in Data tab not in Report tab in Power bi. 

FYI, I have managed to get the below result in the report tab but couldn't replicate the table in the Data tab.

 

Employee or Teamnet
Team stars-190
Adam-60
josh100
Team PBI150
clara60
james-60
Team python50
abe-500
jessica500
Team winners622
Cain-900
Florence-86
Oliver50
Elias33

 

Relationship between Table 1 and Table 2 ( one to many, 1---->----* )oneway. 

 

Thanks in advance

6 Replies

  • CNENFRNL's avatar
    CNENFRNL
    Community Champion
    = CALCULATE( SUM( Table1[net] ), CALCULATETABLE( Table2 ) )

    • PBIFX200's avatar
      PBIFX200
      New Member

      Thank you so much CNENFRNL for the quick reply. I'm looking for the same result but as a table in The Data tab not in report tab. I was able to the same thing. The challenge here is to Create a New table from 2 different tables

       

      • CNENFRNL's avatar
        CNENFRNL
        Community Champion
        Table3 = 
        SUMMARIZECOLUMNS(
            Table2[Employee or team],
            Table2,
            "Sum", SUM( Table1[net] )
        )