IF and SUMIFS like in Excel. I beg for help, I'm desperate

Alexsay

New Member
Joined
Feb 2, 2024
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hello everyone, Hello world

I searched for a long time for a solution but nothing for me:( and I hope from the bottom of my heart that maybe you can help me
So, I have a report from the VBRP SAP table with items from invoices and are some items without value because represent a component item from another
The idea is to replace the zero with the component value. In exlce I managed that but I need it in power querry
For below example the 2nd line has no net value but with formula I take the net value from line three and I use the reference HgLvIt
1706867765048.png

Cl.Bill.Doc.Net valueItemHgLvItSubtotal 3New NET VALUE
01058728049649,031.681009,031.689031.68
01058728049640.002000.0011780.64
010587280496411,780.64302011,780.6411780.64
010587280496416,730.5640016,730.5616730.56
010587280496414,126.4050014,126.4014126.4

I need the same think in PowerQuerry.
Thanks a lot in advance!!!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
I don't know how to do this in PQ, but why don't you create a ABAP report or a Query in SAP itself?

Do you just need data from the VBRP table or you are also using the VBRK and VBRP table?
Also keep in mind SAP has a lot of Sales reports like the KE30, in this transaction you can create your custom reports and change the data anyway you like.

I assume your item 20 is a service article or a BOM and that's why it doesn't have a value in the VRBP?
 
Upvote 0
Add a new column using:

Power Query:
=if [Net value] = 0 then Table.SelectRows(Source, (x)=> x[HgLvIt]=_[Item]){0}[Net value] else [Net value]

This assumes Source is the previous step name, so amend as needed.
 
Upvote 0

Forum statistics

Threads
1,223,929
Messages
6,175,449
Members
452,642
Latest member
acarrigan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top