0.00.0100005050NY50000YN1000100-2024/05/15 15:44:47.232-2024/05/15 15:44:47.232Ndw bi indoteknik (localhost)localhostPOSTGRESQLNativedw_bi_indoteknik5432pdiEncrypted 2be989bb20084ca95810197629d9ea18eFORCE_IDENTIFIERS_TO_LOWERCASENFORCE_IDENTIFIERS_TO_UPPERCASENIS_CLUSTEREDNPORT_NUMBER5432PRESERVE_RESERVED_WORD_CASEYQUOTE_ALL_FIELDSNSUPPORTS_BOOLEAN_DATA_TYPEYSUPPORTS_TIMESTAMP_DATA_TYPENUSE_POOLINGNcalculate gross profitAppend streamsYcalculate net profitAppend streamsYAppend streamsSelect valuesYSelect valuesInsert / updateYcalculate gross profitTableInputY1nonedw bi indoteknik (localhost)select 99998 as id, 'GROSS PROFIT' as name,
(select sum(ly_full) from profit_and_loss pal where pal.id in(322,323)) as ly_full,
(select sum(ly_running) from profit_and_loss pal where pal.id in(322,323)) as ly_running,
(select sum(ly_current) from profit_and_loss pal where pal.id in(322,323)) as ly_current,
(select sum(fy1) from profit_and_loss pal where pal.id in(322,323)) as fy1,
(select sum(fy2) from profit_and_loss pal where pal.id in(322,323)) as fy2,
(select sum(fy3) from profit_and_loss pal where pal.id in(322,323)) as fy3,
(select sum(fy4) from profit_and_loss pal where pal.id in(322,323)) as fy4,
(select sum(fy5) from profit_and_loss pal where pal.id in(322,323)) as fy5,
(select sum(fy6) from profit_and_loss pal where pal.id in(322,323)) as fy6,
(select sum(fy7) from profit_and_loss pal where pal.id in(322,323)) as fy7,
(select sum(fy8) from profit_and_loss pal where pal.id in(322,323)) as fy8,
(select sum(fy9) from profit_and_loss pal where pal.id in(322,323)) as fy9,
(select sum(fy10) from profit_and_loss pal where pal.id in(322,323)) as fy10,
(select sum(fy11) from profit_and_loss pal where pal.id in(322,323)) as fy11,
(select sum(fy12) from profit_and_loss pal where pal.id in(322,323)) as fy12,
(select sum(total_fy) from profit_and_loss pal where pal.id in(322,323)) as total_fy0NNNNIntegernormalid90calculate gross profitid####0;-####0.,noneNY0NNNen_IDAsia/BangkokNStringnormalname2147483647-1calculate gross profitname.,noneNY0NNNen_IDAsia/BangkokNBigNumbernormally_full-1-1calculate gross profitly_full######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormally_running-1-1calculate gross profitly_running######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormally_current-1-1calculate gross profitly_current######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy1-1-1calculate gross profitfy1######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy2-1-1calculate gross profitfy2######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy3-1-1calculate gross profitfy3######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy4-1-1calculate gross profitfy4######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy5-1-1calculate gross profitfy5######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy6-1-1calculate gross profitfy6######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy7-1-1calculate gross profitfy7######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy8-1-1calculate gross profitfy8######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy9-1-1calculate gross profitfy9######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy10-1-1calculate gross profitfy10######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy11-1-1calculate gross profitfy11######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy12-1-1calculate gross profitfy12######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokN288112Ycalculate net profitTableInputY1nonedw bi indoteknik (localhost)select 99999 as id, 'NET PROFIT' as name,
(select sum(ly_full) from profit_and_loss pal where pal.id < 90000) as ly_full,
(select sum(ly_running) from profit_and_loss pal where pal.id < 90000) as ly_running,
(select sum(ly_current) from profit_and_loss pal where pal.id < 90000) as ly_current,
(select sum(fy1) from profit_and_loss pal where pal.id < 90000) as fy1,
(select sum(fy2) from profit_and_loss pal where pal.id < 90000) as fy2,
(select sum(fy3) from profit_and_loss pal where pal.id < 90000) as fy3,
(select sum(fy4) from profit_and_loss pal where pal.id < 90000) as fy4,
(select sum(fy5) from profit_and_loss pal where pal.id < 90000) as fy5,
(select sum(fy6) from profit_and_loss pal where pal.id < 90000) as fy6,
(select sum(fy7) from profit_and_loss pal where pal.id < 90000) as fy7,
(select sum(fy8) from profit_and_loss pal where pal.id < 90000) as fy8,
(select sum(fy9) from profit_and_loss pal where pal.id < 90000) as fy9,
(select sum(fy10) from profit_and_loss pal where pal.id < 90000) as fy10,
(select sum(fy11) from profit_and_loss pal where pal.id < 90000) as fy11,
(select sum(fy12) from profit_and_loss pal where pal.id < 90000) as fy12,
(select sum(total_fy) from profit_and_loss pal where pal.id < 90000) as total_fy0NNNNIntegernormalid90calculate net profitid####0;-####0.,noneNY0NNNen_IDAsia/BangkokNStringnormalname2147483647-1calculate net profitname.,noneNY0NNNen_IDAsia/BangkokNBigNumbernormally_full-1-1calculate net profitly_full######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormally_running-1-1calculate net profitly_running######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormally_current-1-1calculate net profitly_current######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy1-1-1calculate net profitfy1######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy2-1-1calculate net profitfy2######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy3-1-1calculate net profitfy3######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy4-1-1calculate net profitfy4######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy5-1-1calculate net profitfy5######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy6-1-1calculate net profitfy6######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy7-1-1calculate net profitfy7######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy8-1-1calculate net profitfy8######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy9-1-1calculate net profitfy9######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy10-1-1calculate net profitfy10######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy11-1-1calculate net profitfy11######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormalfy12-1-1calculate net profitfy12######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokNBigNumbernormaltotal_fy-1-1calculate net profittotal_fy######0.0###################;-######0.0###################.noneNY0NNNen_IDAsia/BangkokN512112YAppend streamsAppendY1nonecalculate gross profitcalculate net profit288224YSelect valuesSelectValuesY1noneidnamely_fullly_runningly_currentfy1fy2fy3fy4fy5fy6fy7fy8fy9fy10fy11fy12total_fyN512224YInsert / updateInsertUpdateY1nonedw bi indoteknik (localhost)100Npublic