Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
gianmarco
Helper IV
Helper IV

Insert a row to a column (which is a sum of another table column)

Dear All,

I have two tables:

Table A (clients-revenues)

ClientDateInvoiceTotal
x01/01/231300
y02/01/232600
x02/01/233400

 

Table B (special client revenue)

Special ClientDateTotal
z (always the same)03/01/23200
z (always the same)04/01/23300

 

I came up with a visual which sums TABLE A's revenues by grouping clients per unique row:

ClientTotal revenue
x700
y600

 

What I want to achieve now is bringing in the same visual one new row which is my single special client's revenues(client z):

ClientTotal revenue
x700
y600
z500

 

 

Thank you for your help

gianmarco

 

 

2 REPLIES 2
Arul
Super User
Super User

@gianmarco ,

try this in calculated table,

Total cost = 
VAR _total = SUMMARIZE(
    'Table A',
    'Table A'[Client],
    "Total Revenue",SUM('Table A'[Total]))
VAR _lastrow = SUMMARIZE(
    'Table B',
    'Table B'[Special Client],
    "Total",SUM('Table B'[Total]))
VAR _result = UNION(_total,_lastrow)
RETURN _result

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


gianmarco
Helper IV
Helper IV

Cannot make a UNION cause tables are different...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.