Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
KC3
Creator
Creator

Date Formula

Hi Qlikians,

I stuck to get the data.

I want the data in a way where my Market Place will be on Column with Yesterday and Total.

Can someone please help me for that.

PFB image day breakup is there i need only yesterday and total.

KC3_0-1665745030765.png

 

Labels (2)
1 Solution

Accepted Solutions
rubenmarin

Hi, dates has always the complication of the different formats 

You can try with single quotes: Sum({<Date={'$(=Date(Today()-1))'}>} Sales)

Or double: Sum({<Date={"$(=Date(Today()-1))"}>} Sales)

Or converting to num:  Sum({<Date={$(=Num(Date(Today()-1)))}>} Sales)

Or a mix of the previous.

View solution in original post

5 Replies
rubenmarin

Hi, if you only want 2 columns by market place it will be better to remove the date dimension and use 2 measures: one for total and another for yesterday, in example:

Total: Sum(Sales)

Yesterday: Sum({<Date={$(=Date(Today()-1))}>} Sales)

KC3
Creator
Creator
Author

Hi Rube,

I am getting Null value as result can you please take a look into it.

PFB SS for the same.

Formula applied

KC3_0-1666080326901.png

Result-

KC3_2-1666080427936.png

 

KC3_3-1666080501972.png

 

 

rubenmarin

Hi, dates has always the complication of the different formats 

You can try with single quotes: Sum({<Date={'$(=Date(Today()-1))'}>} Sales)

Or double: Sum({<Date={"$(=Date(Today()-1))"}>} Sales)

Or converting to num:  Sum({<Date={$(=Num(Date(Today()-1)))}>} Sales)

Or a mix of the previous.

KC3
Creator
Creator
Author

Thanks Rube for the help

KC3
Creator
Creator
Author

Hi,

Earlier I was getting the proper answer, but i marked in the time of month start the data is showing null value, starting Nov i was facing the same issue.

KC3_0-1670243174581.png