The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
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:
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
(added screenshot cause code wasn't pasting correctly)
Wondering if there's better way?
In the query editor, you can create a custom column and then drag and drop it to the spot that you want it.
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
So we want Total Labour Cost to be Rate x Total Days to be Billed (preferably without calculated column).