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: 
inam
Contributor III
Contributor III

Column Name

Hello Community 

 i have data 1st july to 26 july so i want last 4 date data  23,24,25,26 ( if the date is 28 so i want 24,25,26,27 date data )  but i want MTD (Total) is 1st july to today date .

so i create the pivot table and in this table i am using expression below

in dimension

inam_0-1690458722582.png

Expression below

inam_1-1690458785685.png

 

expression formula :-

inam_2-1690458842733.png

 

same as all [Date Created] only change -3,-2,-1   so its working fine but i want Actual date instead of name [Date Created] 

for example see below format 

Expected output

inam_3-1690459247914.png

i want Actual date instead of  name [Date Created] .

 

Labels (1)
2 Replies
cristianj23a
Partner - Creator III
Partner - Creator III

Hello, use this code.

Sum({< [Date Created] = {"$(=Date(Max([Date Created] )-1,'DD/MM/YYYY'))"} >} Sales)

Sum({< [Date Created] = {"$(=Date(Max([Date Created] )-2,'DD/MM/YYYY'))"} >} Sales)

In this code I am considering the previous day, if you want a day before the previous one, you just put -2 and so on.

For each formula you create a definition.

Regarts.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.
marcus_sommer

You need to use an expression for the labels, too. Just deriving the date-part from the set analysis condition - something like: date(now()-n)