Thanks for reading this one =)
I'm trying to figure out how to figure out how to limit query in HBql based on row ID. I've spent hours, looking up to see if there's any relevant article online.
So far, I haven't found any helpful document regarding this issue; HBql.com wasn't very helpful (maybe it's on there but I missed it).
I'd appreciate if you could give me any tips or documents that will help me with this issue.
-- FT
Try WITH clause. If you look down the page you can do "LIMIT limit_value".
Related
Apologies if this has come up before, but I couldn't find anything.
I am using GraphCMS (highly recommend it) and I have several fields that are floats. I am using them for prices. Each entry in the schema can either be a buy or sell in an enumeration field. I would like to total all the price fields where the entry is a buy, and total all the price fields where the entry is a sell.
I thought there would be something clear in the docs because totalling those fields would be very useful for something like calculating an average score etc. but I can only see docs about counting entries. Have I missed it somewhere?
Surely this is possible?
After speaking with the helpful guys at GraphCMS I have figured out how to do it. This is not a question about GraphCMS as #puelo suggested, but can be achieved by running a graphql query and then programatically running calculations with the data. It's a simple solution but wasn't immediately apparent to me at first. Hopefully that info will be useful to other newbies.
I've configured Grafana to use Elasticsearch as a data source and prepared a few panels.
My document in ES index contains only a few fields. It describes some system actions, respectively there are such fields as userId, action date, and others.
Now I faced with the issue that I can't calculate the amount of time left when the action happened. I mean if the action happened 2 days ago, I need to have the number 2 in my table. Pretty simple I supposed.
I couldn't find any metric or transformation that can allow me to do it.
Any suggestion, help, please.
Resolved my issue with scripted field.
In table visualization, I just picked any numeric field, selected Min metric, and added script like next:
Instant Currentdate = Instant.ofEpochMilli(new Date().getTime());
Instant Startdate = Instant.ofEpochMilli(doc['activity'].value.getMillis());
ChronoUnit.DAYS.between(Startdate, Currentdate);
As a result, it shows me the number I needed.
I don't find this solution the best, so in case anybody know some better way to resolve this issue, please add a comment.
I developed a oracle 10g BI Publisher report and having one issue. I am trying to sum value by current group but I am not getting correct results. Please help me.
<?sum(current-group()/DR[.!=''])?>
Ex: I have <?sum(current-group()/DR[.!=''])?> value is 19,234,770,654,698.34. I had sum with calculator each amount in this group is not equal to above result. Manual summation result is 19,234,770,654,698.33.
Although it is quite late, but hope you will find this answer useful as It worked for me. Replace TAN_AMT with your column name and place that in the appropriate place.
<?sum(current-group()/TAX_AMT)?> - <?sum(current-group()/TOTAL_AMT)?>
I'm trying to group StartDateTime in Business Objects. Data for StartDateTime is coming from a Cisco server. It is in format 7/15/2013 10:52 AM. I am just trying to group these so it's 7/1, 7/2, etc.
I need to create a dimension out of this Day Grouping so I can represent a count of events on each date. Right now I am doing:
=FormatDate([Query 1 (1)].[Startdatetime];"DD")
I've tried variations of this, but nothing is working. I used the above formula to group the hours, I just replaced "DD" with "HH", so not sure why this formula would be so different.
Any ideas? Thank you. It's appreciated.
what if you try
=FormatDate([Query 1 (1)].[Startdatetime];"dd/MM/yyyy")
This is old but wasn't answered. In case anyone stumbles upon this like I just did, the formula is just case sensitive. It should be:
=FormatDate([Query 1 (1)].[Startdatetime];"MM/dd")
Here's a link that includes all permutations of date formatting:
https://blogs.sap.com/2013/11/21/how-to-use-formulae-to-change-date-and-time-formats-in-webintelligence/
As the title, I had a column with filter in a spreadsheet. Now I wish to get that column filter criteria, make some change to it then apply it to the spreadsheet. Is there anyway to achieve this?
Many thanks,
Minh
There is no way to do it as of today. There is issue 524 in the Issue tracker for a similar request. Please star it to register your interest in the same.