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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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