Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
pcalhof
Partner - Contributor
Partner - Contributor

Datum als Dimension verändern

Hallo liebe Community,

folgenden Daten liegen für mein Balkendiagramm in QlikSense zu Grunde (beispielhaft für heute, 28.04.2021):

Dateredyellowgreen
Feb 2021001
Mrz 2021005
Apr 2021013
28.04.2021003

 

Als Dimension verwende ich die Spalte "Date".  Der letzte Eintrag der Spalte "Date" ist immer das heutige Datum. 
Meine Frage lautet nun:  Wie kann ich die Dimension anpassen, dass alle Balken jeweils mit dem Monat beschriftet werden bis auf den letzten Balken (dieser soll das aktuelle Datum tragen). Fürs Verständnis:
Balken 1: Feb. 21
Balken 2: Mrz. 21
Balken 3: Apr. 21
Balken 4: 28.04.2021

Hoffentlich ist es halbwegs verständlich formuliert. 
Gruß, Pascal

Labels (1)
1 Reply
ift_isabelle
Partner - Creator III
Partner - Creator III

Sorry, can't write German.
If I understand correctly, you want al past months described with Month Year and only today with the current date.

I would make a new dimension in the script, where I would replace the date for Month-Year. If the Date is the same as Today(), put data in the dimension.

So:

IF([fieldname] = Today(), Today(), DATE([fieldname], 'MMM. YY')) AS Desired_Dimension

Kind Regards,
Isabelle