Forum Discussion
Power BI: URL (altering fields - Database)
MY CODE:
let
Fonte = Xml.Tables(Web.Contents("http://sbripvs0022/CronetJVX//pido/getData?p_pido=50000000681&SHIFT_DATE2=19082020000000&SHIFT_DATE1=23082020000000&p_crosscompany=0&p_format=XML&p_querytimeout=180&p_userid=TVEN/tven@cronet_cpbritu1")),
Table0 = Fonte{0}[Table],
#"Tipo Alterado" = Table.TransformColumnTypes(Table0,{{"WORK_CENTER", type text}, {"FUNCTION2", Int64.Type}, {"FUNCTION4", type text}})
in
#"Tipo Alterado"
If I change the fields _DATE1=23082020 TO _DATE1=24082020 and _DATE2=19082020 TO _DATE218082020, CAN I update the date.
DO WE HAVE an easier way to change THOSE two fields, directLY in THE REPORT?
Example: A filter when I write: 20082020, change in the date field, without the need to change the database.
- Anonymous5 years ago
Hi Anonymous
I think you may want to change the Date Field when you change the Fields in _Date1 and _Date2.
You can try replace value function in Power Query Editor.
Select Date Field, right click and replace the old date by new one.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- AnonymousNot applicable
Hi Anonymous
I think you may want to change the Date Field when you change the Fields in _Date1 and _Date2.
You can try replace value function in Power Query Editor.
Select Date Field, right click and replace the old date by new one.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.