Hi guys,
I hope you all are doing well. I am having this issue, and I hope you guys can help me out.
From the photos attached, I have created two subqueries. "First output" contains the variables with all the criteria. "Second output" contains only seven criteria. My hope is when adding (PRE + PR), it will return 132.77, 1021.59, and 8.03 respectively from "PRE" instead of NULLS. (See combined Output).
Can someone please tell me what I am doing wrong from the Combined Script?
So this is the same problem I answered yesterday.
ZEROIFNULL(PR) + ZEROIFNULL(PRE)
Yesterdays answer, with full explanation of what is happening.
Related
where DB.VALORI function is DGET in english.
For the queries, the rule is that the criteria row must be under the label row.
The query 1 is ok, is there a way to add query 2?
I personally don't use this DGET function but someone can probably help you here. This is another way you can try with an array formula (click Ctrl + Shift + Enter together):
=INDEX($D$2:$D$5,MATCH(G2&H2&I2,$A$2:$A$5&$B$2:$B$5&$C$2:$C$5,0))
This can do multiple matches and find the result you want. Give it a shot and let me know if you have any question.
P.S. You will need to translate the formula function to your language and doesn't forget to change , to ; in the formula.
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()))
I try to implement a search-mechanism with "CONTAINS()" on a SQL Server 2014.
I've read here https://technet.microsoft.com/en-us/library/ms142538%28v=sql.105%29.aspx and in the book "Pro Full-Text Search in SQL Server 2008" that I need to use double quotes to search an exact phrase.
But e.q. if I use this CONTAINS(*, '"test"') I receive results containing words like "numerictest" also. If I try CONTAINS(*, '" test "') it is the same. I've noticed, that there are less results as if I would search with CONTAINS(*, '*test*') for a prefix, sufix search, so there is definitely a delta between the searches.
I didn't expect the "numerictest" in the first statement. Is there an explanation for this behaviour?
I have been wracking my brain about a very similar problem and I recently found the solution.
In my case I was searching full text fields for "#username" but using CONTAINS(body, "#username") returned just "username" as well. I wanted it to strictly match with the # sign.
I could use LIKE "%#username%" but the query took over a minute which was unacceptable so I kept looking.
With the help of some people in a chat room they suggested using both CONTAINS and LIKE. So:
SELECT TOP 25 * FROM table WHERE
CONTAINS(body, "#username") AND body LIKE "%#username%";
this worked perfectly for me because the contains pulls both username and #username records and then the LIKE filters out the ones with the # sign. Queries take 2-3 seconds now.
I know this is an old question but I came across it in my searching so having the answer I thought I would post it. I hope this helps.
Contains(*,'"test"') will only match full words of "test" as you expect.
Contains(*,'" test "') same as above
Contains(*,'"*test*"') will actually do a PREFIX ONLY search, basically strips out any special characters at the start of word and only uses the 2nd *.
You cannot do POSTFIX searches using full text search.
My concern lies with the Contains(*) part, this will search for any full text cataloged items in that entire row. Without seeing the data it is hard to tell but my guess is that another column in that row you think is bad is actually matching on "test" somewhere.
Help solve the problem. It is impossible to produce the amount of the grouped fields. I can only add up all the fields. What I want to get the show on the link below.
http://habrastorage.org/files/99c/5df/f1f/99c5dff1f34e4d1a9e51e3769a65b18f.png
PS Sorry for my English, I use translate.google.
In order to help with something like this, it would be good to see a code snippet which you are using. This would give an idea of where the data is coming from and what format the data is.
I am no Korean expert and am finding it difficult to fix this, searching for the following query, but the NOT condition doesn't seem to be working.
(stnostem:((옵티머스 OR "엘지 스마트폰") AND NOT ("옵티머스 프라임" OR 프라임)))
the search result return result with the NOT condition keywords? How can this be fixed.
Regards,
Ayush
You might try using the - to specify a pure negative query. Try the following:
stnostem:(옵티머스 OR "엘지 스마트폰") -stnostem:("옵티머스 프라임" OR 프라임)
You may need the AND between the two queries depending upon what your DefaultQueryOperator is.