itsnotaboutthecell

Power Query M - National Bank of Serbia Web Query

Apr 10th, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. /*
  2. Created By: Alex Powers
  3. For: Marko Bokic -
  4. Website: http://www.itsnotaboutthecell.com
  5. LinkedIn: https://www.linkedin.com/in/alexmpowers/
  6. */
  7.  
  8. let
  9. Source = Web.Page(Web.Contents("https://www.nbs.rs/static/nbs_site/gen/english/50/own_struct/50b5_en.htm")),
  10. Data = Source{0}[Data],
  11. #"Removed Top Row" = Table.Skip(Data,1),
  12. #"Replace: ""."" with null" = Table.ReplaceValue(#"Removed Top Row",".","",Replacer.ReplaceText,{"No."}),
  13. #"Type: Number, Text, Number" = Table.TransformColumnTypes(#"Replace: ""."" with null",{{"No.", Int64.Type}, {"Total Balance Sheet Assets, net (in thousands of dinars)", Int64.Type}}),
  14. #"Remove Errors: No." = Table.RemoveRowsWithErrors(#"Type: Number, Text, Number", {"No."})
  15. in
  16. #"Remove Errors: No."
Add Comment
Please, Sign In to add comment