Normally, a query start with Source variable. The first one though could still be written in a more elegant way. The second one is a longer and can be confusing way of writing a formula wherein, instead of assigning DateTime.Date( DateTime.LocalNow() ) to a variable, I repeated it multiple times in the code. In the first one, I simply assigned DateTime.Date( DateTime.LocalNow() ) to a variable named today. If you placed them in the PQ formula bar, both would return the URL+ YYYYMMD format of todays date + your additional text strings. M scripts are independent from one another but lead to the same result.
0 Comments
Leave a Reply. |