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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
artfulmunkeey
Helper I
Helper I

Column from column values

Hi all,

 

I have another problem that I cannot solve and wonder if the community can help.

 

I would like to create new columns based on the entries in the existing column 'Account Name' summing the correct amount by WorOrder and account name field, whilst retainnig the other information.

 

Trans.DateAccountAccount NameProjectCodeResourceCodeWorkOrderAmount
01/01/19100111Cost101306101.200$150
01/01/19111222Revenue201306201.100-$50
01/01/19200222Revenue301401301.100-$100
01/02/19100111Cost201306201.200$50
01/02/19100222Revenue201401201.300-$100

 

I wish to get a result similar to the below:

 

Trans.DateAccountCostRevenueProjectCodeResourceCodeWorkOrder
01/01/19100111$150-$50101306101.200
01/01/19200222 -$100301401301.100
01/02/19100111$50 201306201.200
01/02/19100222 -$100201401201.300

 

Any help would be greatly appreciated! 

 

TIA 🙂

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello @artfulmunkeey ,

I don't quite understand why your 111222 account will be merged with account 100111 in the desired result.

If you follow your table, the result may be this.

Cost = IF([Account Name]="Cost",[Amount])
Revenue = IF([Account Name]="Revenue",[Amount])

6.png7.png

More details can be found here.

Best regards

Stephen Tao

If this post helps,then consider Accepting it as the solution to help other members find it faster.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hello @artfulmunkeey ,

I don't quite understand why your 111222 account will be merged with account 100111 in the desired result.

If you follow your table, the result may be this.

Cost = IF([Account Name]="Cost",[Amount])
Revenue = IF([Account Name]="Revenue",[Amount])

6.png7.png

More details can be found here.

Best regards

Stephen Tao

If this post helps,then consider Accepting it as the solution to help other members find it faster.

darentengmfs
Post Prodigy
Post Prodigy

Hi @artfulmunkeey 

 

Go to Power Query Editor, duplicate your current table, remove all columns besides Trans.Date, Account Name, and Amount. Then, click onto your Account Name column, and pivot it, with the criteria sum of Amount.

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors