I have a report I want to limit to either "Value1" or "anything but Value1".
This is driving me nuts, in the default values I have :
Value1
<>"Value1"
Any ideas please, this is in SSRS2012 standard Report Parameters setup - not anything fancy in T-SQL and has taken up 83% of my day at work :)
Thanks in advance,
Are you passing double quotes to SQL? You could try tracing the query using SQL Profiler.
Related
The filter query in this flow doesn't appear to be working as expected. I know for certain that the items it emails out afterwards have the first two toggles set to false. Is there something in the syntax that I'm missing? Or possibly in the date/time comparisons? This is my first dive into Power Automate, and its with someone elses flow. So any insight is greatly appreciated.
This is an example of what it looks like after running, and getting items where Confirmed = false.
Thank_x0020_You_x0020_Sent eq 'false' and Confirmed eq 'true' and EventDate lt '2021-07-20T00:00:00.0000000' and EventDate ge '2021-07-19'
Assuming EventDate is a DateTime data type, instead of the raw outputs try:
formatDateTime(outputs('<actionName>'), 'yyyy-MM-ddTHH:mm:ss')
It seems to me that having so many conditions for the query is not a good idea and less if dates are used.
It is better to do the query with one or two conditions and then filter the received data within an apply to each step
The first two conditions are Yes/No Columns, so they need to be 0 or 1 (not true/false) Silly mistake, don't know how I missed that.
I agree with both previous comments for cleaning up the query in general.
I'm trying to use the trigger_start_time variable in the query as the 2nd parameter to a function of lookup activity.
How can I do this ? Can anyone please help me out ?
Please try #concat('select schema.fn_up_watermark(',Parameter_name,',',variable_name, ') from dual') in add dynamic content.
I just make this example with the query you provide me. You could test that not use the parameter and variable to check where missing the right parentheses.
Now, I'm glad to hear the issue is resolved now.
You can do away with the variable and simply write:
select schema.fn_up_watermark('#{item().table_name}','#{pipeline().TriggerTime}') from dual
assuming both parameters are string.
You could still do SQL injection if you can affect the outer lookup that feeds this ForEach block - you could sanitise the table_names on entering this loop possibly.
Do anyone know how to format the Power Bi back-end query, I did not find any thing only.
Like for JSON we have json formater online.
Can not we do the same, for DAX and M- Language wanted to format the query so that i can read properly.
There is https://powerqueryformatter.com/ - it is helping me format Power Query M language
For DAX, you can use https://www.daxformatter.com/ - provided by the SQLBI team.
Until now, i was able to see few option in Power BI advance editor, that is helping me a bit not 100% formatted code.
Best suggestion would be is to use text editor like sublime and do format your query on building stage, that would give you more clarification if you are working on the Power Bi side. Thanks you.
If someone knows, how to do this query format start to end the whole query, please let me know.
I have a table like the following:
I want the output as,
I am using this query:
select Round(Rate,2), Amount from TT_Table;
when i give this, it will give precision for the floating point numbers only. it doesnt give precision to the integers. And how i can use the comma seperator to the Amount?
Can anyone please help me...
please, try
select to_char(rate, '999.99'), to_char(amount, '999,999,999,999,999') from tt_table
I have a problem of using the where clause for limiting dates
I can't even get a simple statement like on "Feb 5 2010" to work,
e.g.,
select * from LineItems where DueDate = 2/5/2010;
I tried
"2/5/2010"
"2010/2/5"
"2010-2-5"
"2010-02-05"
2010-2-5
2010-02-05
...
but none worked.
Does anyone have an idea what the proper format for the date should
be? And should it be quoted?
Thank You!
This works for me in a Query
SELECT *
FROM Table1
where mydate = 2010/2/5
Writing a date like that is unambiguous; the other way round will depend on your locale settings.
Hey Guys, I did figured out that you must surround the date with a pair of #'s. Just leaving the date unsurrounded does not work for me. I figured this out by saving a "Filter" in the Data View of Access as query, then I looked at that query in SQL view.