Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hallo liebe Community,
folgenden Daten liegen für mein Balkendiagramm in QlikSense zu Grunde (beispielhaft für heute, 28.04.2021):
Date | red | yellow | green |
Feb 2021 | 0 | 0 | 1 |
Mrz 2021 | 0 | 0 | 5 |
Apr 2021 | 0 | 1 | 3 |
28.04.2021 | 0 | 0 | 3 |
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
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