Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello,
A bit new to Power BI here, so go easy on me.
I have two tables, table A and table B. Table A has a lot of customer numbers and their revenue for each transaction, while table B just has the distinct customer. I want to create a second column in Table B that has the sum of all the revenue from Table A for each of those customers. How can I do this?
Thanks
Solved! Go to Solution.
If for some reason the tables do not have a relationship...you can use this column
Column = CALCULATE ( SUM ( TableA[Revenue] ), FILTER ( TableA, TableA[CustomerNo] = TableB[CustomerNo] ) )
Hi,
Create a relationship from the Customer Name column of Table A (Revenue) to the Customer Name column of Table B (Customers). Write this calculated column formula in Table B (Customers)
=SUMX(RELATEDTABLE(Revenue),[Revenue])
Hope this helps.
Hi @epmck11
If the 2 tables are related to each other via customer column...then you can use this calculated column
Column = CALCULATE ( SUM ( TableA[Revenue] ) )
If for some reason the tables do not have a relationship...you can use this column
Column = CALCULATE ( SUM ( TableA[Revenue] ), FILTER ( TableA, TableA[CustomerNo] = TableB[CustomerNo] ) )
User | Count |
---|---|
88 | |
72 | |
69 | |
65 | |
57 |
User | Count |
---|---|
93 | |
93 | |
91 | |
76 | |
69 |