Quantcast
Channel: SCN : Discussion List - SAP Business Explorer (SAP BEx)
Viewing all articles
Browse latest Browse all 4032

Line Item Wise count to find Amount (Query Designer)

$
0
0

Hello

 

I have a requirement wherein I have to find Amount for each Equipment by dividing it by the count of distinct equipments containing per CRM OBJ ID.

 

CRM OBJ IDEQUIPMENT No.Net Price  What I Require
69550311788410000       10000/3
1788410000       10000/3
1788410000       10000/3
2155721000       21000/2
2155721000           21000/2
957424000          24000
62098301788410000        10000
1355411000        11000
432418000        18000/3
432418000         18000/3
432418000

        18000/3

 

 

As you can see above, for example, CRM OBJ ID 6955031 has three 17884 equipments with 10000 net price... the amount I require should be 10000/3. Again, 9574 is just one equipment... so its amount remains 24000/1 = 24000.

Also, another CRM OBJ ID 6209830 also contains one 17884 equipment... but since this equipment is not related to the previous 17884 occurrences, the amount must remain 17884/1 = 17884.

 

How is this possible in Query Designer? Kindly help.


Viewing all articles
Browse latest Browse all 4032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>