I am pretty new to Qlikview and I need some help with pivot table, accumulation expression (hope this makes any sense) over time. I have tried to find solution here, but simply by copy pasting expressions doesn't work (trial and error didn't pay off so far). So I hope you can help me with my first app.
I have managed to setup bar chart and it works perfectly because I can check the full accumulation, but in pivot there is no such thing..
Here is the setup:
Dimension: Date
Expressions:
Created = count(if(Status='New',Id))
Resolved = count(if(Status='Resolved',Id))
Open = Created - Resolved
Here you will find sample data. This table was modified from original date in order to get "Event" list, where I can track when each ticket was created / resolved (thanks to the contributors from stack overflow). From my understanding this is a good practice.
In attached image you will see what I want to achieve, but it will probably cause issues with my totals. Right now, while Open is totaly broken, end total at the end of the pivot is calculated "Ok", but on each day its totally wrong. Can i have both? I would gladly give up on total sum of Open if I can get it to work daily.
I have personal edition so I am unable to open qlikview apps, so I would appreciate if you could show me how to do this in some detail.
If anyone had issues with pivot accumulation like i had, use this expression:
rangesum(before(count({}Id) - count({}Id),0, ColumnNo()))
Related
I have a question regarding COGNOS inbuilt function.
I have a report of another developer in which he is using the inbuilt function total(currentMeausure within head set) in COGNOS. My task is to enhance the report. And the fields which have to be enhanced are using this function and I have no idea what this function is doing here.
Thanks,
Regards
Hajrah Naeem
I have searched a lot on google but didn't find accurate description about it. Can anyone explain me this function in easy way with some example so that I can continue my work?
Total is the aggregation to be done on the measure.
CurrentMeasure is either the defaultMeasure on the Crosstab or the Measure projected on an edge
Within set(head(dimension/level/set,N)) means the first N members of the defined object.
So for total(currentMeasure within set(head([ProductLine],3)) would give you total of the first 3 members in the ProductLine level.
I'm attempting to understand what exactly date-fns is doing when using parseISO() as it seems to be adding 2 hours to the time that I have saved in the database. The data is as follows:
ISO Date/Time saved in database: 2022-09-20T19:52:53.000Z
Using format(parseISO(2022-09-20T19:52:53.000Z), "HH:mm:ss") I get this: 21:52:53 hrs
Somewhere along the line 2 hours are being added and unsure as to the cause. A comment left by Monash Joshi in (stackoverflow issue) hints towards an explanation but not really a solution. Want I want to show is just the parsed date/time value as it is. Would it thus make sense to manipulate the string that I receive from the database myself?
Thanks in advance for your help! And let me know if you need any further information.
Just out of curiosity, but I notice it changes seemingly at random, and I cannot find any documentation online for it at all. I have tried Googling it, and I fear I am poorly wording my search terms to find it.
I'm trying to workout what the numbers in brackets are after the username that is executing a query in SSMS are or for?
In the tab name or the window title, it'll appear like this:
SQLQuery19.sql - server_name.db_name (NETWORK\user (525))
The number seemingly changes when I open a new query at different times, and it doesn't seem to increase or decrease with any sort of pattern. Any links to documentation or brief explanation would be great.
That's the session_id - you can confirm by running SELECT ##SPID; in that window.
See https://learn.microsoft.com/en-us/sql/t-sql/functions/spid-transact-sql
Hi Having a syntax issue - at least I think it is. I want a default date as part of a case statement inside a materialised view (MS SQL 2008 +):
, CASE
WHEN WithFirstDate = 0 THEN CONVERT(DATE,'1900-JAN-1', 101)
WHEN WithFirstDate = 1 THEN
Start1
ELSE --WithFirstDate = 2
Start2
END ValidDate
I'm getting the following error:
view uses an implicit conversion from string to datetime or smalldatetime. Use an explicit CONVERT with a deterministic style value
I'd like to have a solution that works irrespective of localization (i.e US style dates, Japanese style dates and the rest of the world)
Thanks
Instead of:
CONVERT(DATE,'1900-JAN-1', 101)
Just do:
CONVERT(DATE,'1900-01-01')
However the issue may be with the other two columns, Start1 and Start2. I am guessing these are not DATE columns.
The 101 code you are passing the CONVERT function does not match your format. Check the following link to find the correct code:
http://msdn.microsoft.com/en-us/library/ms187928.aspx
Ok well this forum has gone downhill IMHO, first my post get endless edited for grammar which doesn't change the meaning, then it gets voted down presumably because it was "to difficult" to answer. https://stackoverflow.com/users/61305/aaron-bertrand was on the right lines. Thanks Aaron. The problem was a computed column in one of the referenced tables was non deterministic. This error only resolved in a flag when the materialising clustered index was being created on the view. I'd post a link to the full answer but not allowed. Shame I cant recover all my old badges and points from a couple of years ago. Full answer here http://tinyurl.com/knor8qk
I'm trying to create a new column based on my main project's Date column that pulls timeline events from another Google Refine project:
cell.cross("Clean5 Timeline", "TimelineDate").cells["TimelineEvent"].value[0]
The dates are in the same format in both Google Refine projects. But it fills no cells, and I get this error:
Error: Cannot retrieve field from null
This —
cell.cross("Clean5 Timeline", "TimelineDate")
— returns [ ] for rows where there should be a match.
And this —
cell.cross("Clean5 Timeline", "TimelineDate").cells["TimelineEvent"]
— returns null for those rows.
I copied the syntax directly from the GREL help files: http://code.google.com/p/google-refine/wiki/GRELOtherFunctions. Can anyone suggest what I may be overlooking?
Thanks.
Without access to your projects it's going to be difficult to answer this, but the first thing I'd suggest is that you trim back your expression to find out exactly where the null is coming from.
Since
cell.cross("Clean5 Timeline", "TimelineDate")
is returning an empty array ([]), nothing based on that result is going to work.
There are three possible problems that I can think of: 1) the project name is wrong, 2) the column name is wrong, 3) the data values don't match (or Refine doesn't think they do), or 4) you are running into a caching bug with cross() that exists in Refine 2.5.
Restarting the Refine server should clear the cache if you're running into the bug and it's also fixed in the current source repository. The fix will be included in OpenRefine 2.6.