Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
bhaveshp90
Creator III
Creator III

How to convert this sql into my script ?

Hello,

I have my SQL query as shown below,

CASE

WHEN [Probable_Position_wo_LDs] NOT LIKE '%#%'

  THEN CAST(REPLACE(SUBSTRING([Probable_Position_wo_LDs],4,10),',','') AS FLOAT)

END AS [Probable Risk Position w/o Damages (R-C-Cont)],


How can I convert this into my script and load? Any help is greatly appreciated.


Dummy Data:


          

Project_NumberRisk_Contingency_WBSProbable_PositionRegionSnapshot_DateProbable_Position_wo_LDsProbable_Contractual_PenaltiesFull_impact_Contractual_RisksNet_Full_ImpactProbable_Managed_Impact
P04950168192.74(C) -1942.73999999999ANZ-ASEAN11/30/2017(C) -1942.73999999999(R) 0(R) 0(R) 2900000(R) 113250
P060125395.92(R) 181904.08ANZ-ASEAN11/30/2017(R) 70604.08(R) 111300(R) 445200(R) 591000(R) 176170
P0623310000(C) -36000ANZ-ASEAN11/30/2017(C) -36000(R) 0(R) 0(R) 155000(C) -28600
P0627163815(C) -63815ANZ-ASEAN11/30/2017(C) -63815(R) 0(R) 0(R) 20000(R) 9000

thanks

Bhavesh

11 Replies
bhaveshp90
Creator III
Creator III
Author

The script loaded correctly when I removed the end statement

bhaveshp90
Creator III
Creator III
Author

That was very helpful, thank you