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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
michaelh121
Frequent Visitor

Multiplying contents of two columns and placing answers in an existing column

Hi,

 

Basically we have two populated columns A and B and we wish column C to be populated with the product of of the individual entries of columns A and B. Ideally we'd like to avoid calculated columns as this places the new column at the end.

 

Tried playing about with the advanced editor, but still haven't been able to solve this. Is there something straight forward we're missing?

 

Let me know if you need any more info or if I need to rephrase this question!

 

Cheers.

5 REPLIES 5
v-sihou-msft
Microsoft Employee
Microsoft Employee

Hi @michaelh121,

 

For your requirement, you can directly multiply two columns, then use CONCATENATE() to concatenate the result with existing column context into single string. The expression can be like:

 

 = CONCATENATE("existing text",table[col1]*table[col2])

 

Please refer to screenshot below:

 

Capture.PNG

 

Regards,

Hello Simon,

 

We're unable to place the results in an already existing column with your method. We've only been able to create a new column with the results.

 

Total Labour Cost = CONCATENATE("",tablename[Rate ]*tablename[Total Days to be Billed])

This is what we tried to use, but we get told that the column name already exists. Are you doing this in query editor or data view? Is this a measure or a new column?

 

We managed to do it using this code in the advanced query editor

code.PNG

(added screenshot cause code wasn't pasting correctly)

Wondering if there's better way?

Greg_Deckler
Community Champion
Community Champion

In the query editor, you can create a custom column and then drag and drop it to the spot that you want it.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

The problem is that we want to do this for a high number of columns. Ideally we'd just like to calculate the amount in each of these columns rather than having to create a calculated column each time and drag/drop. Is there a method for this?

 

Kind Regards,

M&P

example.PNG

 

So we want Total Labour Cost to be Rate x Total Days to be Billed (preferably without calculated column).

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors