I have a filter on a Group Properties, CaseNO, that when the three conditions are present to return that row and those three items:
Here is the IIF Statement:
=IIF((Fields!ExtConnID.Value="2") AND (Fields!ExtConnID.Value="200") AND
(Fields!ExtConnID.Value="2040"),True,False)
But, I get no hits/data. Can someone with clear eyes and mind, help me out?
Thanks,
JER
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.
This should be easy but I can't seem to figure it out. All I want to do is be able to sort ascending/descending by Value across 4 groups. Here is my design...
This is the report (note that all the child groups are toggled by their parents)...
Toggling the sort widget doesn't do anything. I tried sorting by group but that just sorts the group values by alpha. Would appreciate some help with this.
Thanks!
It looks like you should check the radio button for Groups, then select your Product group and use sum(fields!ThisTotalValue.value) for the sort by expression.
I finally figured out what was holding me back. I based my sort expression on this expression: =Sum(Fields!MergedTotalValue.Value, "tbl_AUM_Summary")
rather than this one: [Sum(MergedTotalValue)]
Not sure why the former didn't work, though.
I have a matrix to show pivot values of IN Network and OUT of Network invoices. I need to find 'IN Network total'/'Grand total' as a percentage. my expression is looking like this.
=switch(Fields!Network_Type.Value="IN Network", Fields!ClientInvoices.Value/sum(Fields!ClientInvoices.Value))
But I got only values for 2 columns.Could anyone please guide me how to find the percentage at the required row.
The switch function is usually used for evaluating multiple conditions instead of just one, but would still work in this setting. I think the issue is that you're applying the switch function row by row, and it will only return a value if the condition is true - so if the condition evaluates false for the last row in the set, it gives back nothing. You may wish to structure it so that it sums all of the instances in which the condition evaluates to true, then divide by the overall sum:
=sum(switch(Fields!Network_Type.Value="IN Network", Fields!ClientInvoices.Value))/sum(Fields!ClientInvoices.Value)
I'm trying to create duplicate records in my result set in order for me to show row more than once in a report. Some rows need to show up in multiple groups. My answer to this is to have FetchXML return dupes and then ill just create group filters to solve my problem. If you guys have better approach to my problem let me know. Thanks.
You must use subreport for this case and pass parameters into it from main report.
im trying to run an hql query which aggragets (sum) number of transactions made on a specific account, i dont need a group by since my where clause has a specific account filter (where account = :account)
i do, however, want to return the aggregated value only if it is smaller/bigger than some given value.
when im adding 'having' after the where clause without 'group by' im getting an error -
unexpected token: having
in native sql i succeeded adding 'having' without group by
any ideas on how to make it work with hql?
thanks alot
The reason why databases don't let you mix grouped columns with non-grouped and non-aggregated ones is, that for non-grouped/non-aggregated columns it would have to choose one row's value per group, but doesn't know how to pick one.
If you don't care, then you could just leave it away and if it doesn't matter because they're all the same, you could group by them, too.
It is not hql, but if you have native query, then run it like:
Query query = session.createSQLQuery("select, *** ,... blah blah")
//set If you need
query.setParameter("myparam", "val");
List result = query.list();
In my eyes this is nonsense. 'having' is done for conditions on a 'group by' result. If you don't group, then it does not make much sense.
I would say HQL can't do it. Probably the Hibernate programmers didn't think of this case because they considered it as not important.
And anyway, you don't need it.
If it is a simple query, then you can decide in your java code if you want the result or if you don't need it.
If it is in a subselect, then you can solve the problem with a where condition in the main select.
If you think it is really necessary then your invited to give a more concrete example.