Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Nikhil2725
Creator II
Creator II

Addition

Hi Team,

I have a below table.

PH6PH6_descSales T/O
231546BV 5461163729
255373VAG Produkte1092099
221051El. fusion fitti. PB880487
201950Solv.cement fitt.me.874874
230152Solv. Cement Fit. mm689215
202956Ballvalves for water550592
230153Adapter Fittings mm531082
251313ELGEF Plus saddles464251
221043Pipe PB in bars451753
2J1J54Regulierarmaturen432843

 

Further I want to add new column as below. Kindly help me in doing this.

PH6PH6_descSales T/ONew ColumnDescription
231546BV 54611637291163729For the first row the value should be same as Sales T/O(1163729)
255373VAG Produkte10920992255828Addition of 1st row and 2nd row of Sales T/O(1163729+1092099)
221051El. fusion fitti. PB8804873136315880487+2255828
201950Solv.cement fitt.me.8748744011189874874+3136315
230152Solv. Cement Fit. mm6892154700404689215+4011189
202956Ballvalves for water5505925250996550592+4700404
230153Adapter Fittings mm5310825782078531082+5250996
251313ELGEF Plus saddles4642516246329464251+5782078
221043Pipe PB in bars4517536698082451753+6246329
2J1J54Regulierarmaturen4328437130925432843+6698082

 

 

40 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this:

MC.PNG

Dimension: [Sales T/O]

Expression: PH6

                         PH6_Desc

                        RangeSum(above([Sales T/O],0,RowNo()))

 

Kushal_Chawda

@Arthur_Fong  above expression won't work if you perform selection on PH6 and PH6_desc. You need to use below expression to exclude selections of table dimensions

 RangeSum(above(sum({<PH6,PH6_desc>}[Sales T/O]),0,RowNo())) *avg(1)

Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Thanks for pointing out this.

Nikhil2725
Creator II
Creator II
Author

Hi, 

Thanks for the reply..

Im taking PH6 and PH6_desc from the DB table. So when i use PH6 and PH6_desc as measure in the front end its showing Null value.. How can i do this ??

 

Nikhil2725
Creator II
Creator II
Author

Hi Team,

Any Suggestion on the above query??

 

Kushal_Chawda

You should use it as dimension. They are not the measure

mahaveerbiraj
Creator II
Creator II

Hi nikil ,

try below expression i hope it will help you .

rangesum(above(sum([Sale T/O],0.rowno())))

mahaveerbiraj
Creator II
Creator II

try this nikil ,

 

rangesum(above(sum([Sale T/O],0.rowno())))

Nikhil2725
Creator II
Creator II
Author

Hi,

If, I use PH6 and PH6_desc as dimension im not getting the desired output..

Please find the attached file.

 

Nikhil2725
Creator II
Creator II
Author

Hi Team,

Any Update?