Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
I need to help with this:
I have 1 URL to exchange currency rate, with START and END parameter as date.
I can´t find out how to write it correctly.
Example do you have here.
Thank you,
Jan
Solved! Go to Solution.
Use this. You might get Privacy acceptance notice which you can accept if you are not sending sensitive data outside.
let
Zdroj = Csv.Document(Web.Contents("https://www.cnb.cz/cs/financni-trhy/devizovy-trh/kurzy-devizoveho-trhu/kurzy-devizoveho-trhu/vybrane.txt?od="&Start_Date&"&do="&End_Date&"&mena=USD&format=txt"),[Delimiter="|", Columns=2, Encoding=65001, QuoteStyle=QuoteStyle.None]),
Start_Date=Date.ToText(Variable_Start_Date,"dd.MM.yyyy"),
End_Date=Date.ToText(Variable_End_Date,"dd.MM.yyyy"),
#"Změněný typ" = Table.TransformColumnTypes(Zdroj,{{"Column1", type text}, {"Column2", type text}}),
#"Odebrané horní řádky" = Table.Skip(#"Změněný typ",1),
#"Záhlaví se zvýšenou úrovní" = Table.PromoteHeaders(#"Odebrané horní řádky", [PromoteAllScalars=true]),
#"Změněný typ1" = Table.TransformColumnTypes(#"Záhlaví se zvýšenou úrovní",{{"Datum", type date}, {"Kurz", type number}}),
#"Přejmenované sloupce" = Table.RenameColumns(#"Změněný typ1",{{"Kurz", "USD"}, {"Datum", "Date"}})
in
#"Přejmenované sloupce"
Use this. You might get Privacy acceptance notice which you can accept if you are not sending sensitive data outside.
let
Zdroj = Csv.Document(Web.Contents("https://www.cnb.cz/cs/financni-trhy/devizovy-trh/kurzy-devizoveho-trhu/kurzy-devizoveho-trhu/vybrane.txt?od="&Start_Date&"&do="&End_Date&"&mena=USD&format=txt"),[Delimiter="|", Columns=2, Encoding=65001, QuoteStyle=QuoteStyle.None]),
Start_Date=Date.ToText(Variable_Start_Date,"dd.MM.yyyy"),
End_Date=Date.ToText(Variable_End_Date,"dd.MM.yyyy"),
#"Změněný typ" = Table.TransformColumnTypes(Zdroj,{{"Column1", type text}, {"Column2", type text}}),
#"Odebrané horní řádky" = Table.Skip(#"Změněný typ",1),
#"Záhlaví se zvýšenou úrovní" = Table.PromoteHeaders(#"Odebrané horní řádky", [PromoteAllScalars=true]),
#"Změněný typ1" = Table.TransformColumnTypes(#"Záhlaví se zvýšenou úrovní",{{"Datum", type date}, {"Kurz", type number}}),
#"Přejmenované sloupce" = Table.RenameColumns(#"Změněný typ1",{{"Kurz", "USD"}, {"Datum", "Date"}})
in
#"Přejmenované sloupce"
Thank you,
its work great!
Honza
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |