Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Asazaky
Regular Visitor

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.

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @Asazaky 

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. 

View solution in original post

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @Asazaky 

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. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.