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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Muavia
Frequent Visitor

how to add cost values of same products in same column

Rep officestatuscost
A2processing1902
A2processing8721
A9overdue1921
A2processed2001
A2processed2213
A9processed22113
A5processing2213
A2processing4343
A5Overdue2321
A2closed1123
A5closed9382
A5closed8382
A5processing912

i have a data like this and i want to calculate same name values from status column and than add the cost of that all values for example rep office of A2 have  a processing status of 3 times and i need to add that all3 processing cost  1902+8721+4343 

than A2 have a status of processed 2 times taht cost 2001+2213=4214and my end result or graph should be like this

Rep office                  closed     overdue      processed      processing

A2                              1123          -                  4214                      14966

A5

A9

..

which query or expression i need to enter thanks

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Muavia,

 

You need a Matrix. Place [Rep office] in "Rows", [status] in "Columns" and [cost] in "Values".

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Muavia,

 

You need a Matrix. Place [Rep office] in "Rows", [status] in "Columns" and [cost] in "Values".

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
HotChilli
Super User
Super User

Use Power Query editor.

select the 'status' column.

Click ''Pivot Column',  select 'cost' in the dropdown when it appears. Click ok

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors