Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
merry2018
Creator III
Creator III

Daten von gestern anzeigen

Hallo Zusammen,

ich benötige mal wieder eure Hilfe und zwar möchte ich in einem Diagramm die Daten von gestern anzeigen, ohne das eine Auswahl auf Tagesebene getroffen wurde.

Es wird immer nur die Woche ausgewählt und trotzdem soll heute die jeweilige Schicht von gestern gezeigt werde, wozu es drei (F, S, N) Diagramme gibt, für jede eine.

Überlegt habe ich es zb. folgend:

sum({<Tag={'max(=$(=(Tag)))'}>}if(Schicht='F', Dauer))

Aber sicher bin ich mir nicht, da das eigentlich ja vorschreibt, dass der aktuelle Tag selektiert ist, was aber nicht sein darf, da parallel auch Diagramme sind welche die ganze Woche zeigen oder so.

Danke für eure Hilfe schon mal und Grüße

Merry

12 Replies
merry2018
Creator III
Creator III
Author

That solution is only, because the other don't work.

I would like to get that formel right:

sum(<%_Key_Kalender={"$(=(today()-1))"}>if(shift='F', Time))


Did some one know what is wrong with that formel?




felipedl
Partner - Specialist III
Partner - Specialist III

Hi Mery


The today()-1 returns a textual representation of the date, and your %_key_kalender might be a number, not giving the right result.

Other thing is, that the if statement your doing could be incorporated to the set analysis, like so

  1. sum(<%_Key_Kalender={"$(=Num(today()-1))"},shift={'F'}>Time)) 

That will sum up the last day's and shift "F" time.

To see what's going on, add a simple straight table with your formula, and hover the mouse over the expression header, that will show you what the set  analysis is returning.

Could you post that and the %_Key_Kalender field on a screenshot to check what might be wrong?

merry2018
Creator III
Creator III
Author

Thanks for try to help.

Maybe there 2 breaks "{}" missing, but it's not gooing as well, with that:

sum({<%_Key_Kalender= {"$(=num(today()-1))"}>} Time)

from the table I can not make a screenshoot, because its called "No data available".

The Kalender Field are the following:

Date(Datumsfeld_tmp.Datumsfeld, 'DD.MM.YYYY') as %_Key_Kalender,