Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Help me!
I have 2 data tables link with look_up table throug Field PID:
How to calculate field RATE * BALANCE?
I try use SUMX & RELATE, but it not work, becaus 2 data table Tabale 1 and Table 2 not Link directly (relationship type n * n).
Many thanks
Solved! Go to Solution.
=sumx(relatedtable(table1),sumx(relatedtable(table2),table1[Balance]*table2[rate]))
Hi @Anonymous ,
I tested on my side. Here's my data model.
You need to put the [PID] from Look_up table into the visual.
Measure = SUM('Table 1'[Balance])*SUM('Table 2'[RATE])
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Wow, It looks more simple. I like your solution.
I will test. Actually Table 1 and Table 2 link with 2 lookup: PID & Currency like that:
Table1 (PID, Currency, Balance)
Table2 (PID, Currency, Rate)
I will try to use your solution to check whether it works. Thank you very much
=sumx(relatedtable(table1),sumx(relatedtable(table2),table1[Balance]*table2[rate]))
Awesome, it works.
But could you help me to understand more about the logic here.
Function SUMX: SUMX(Table, Expression)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
13 | |
8 | |
8 | |
7 |
User | Count |
---|---|
17 | |
11 | |
7 | |
6 | |
6 |