Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Compare Data of Today to Yesterday

Hey Guys, first post...

small question though, beginners one 🙂

I want to SUM the COST for a certain day, using the day i currently have... in other words, if i select the 2nd of july i want to sum the amount of the 1st, if i select the 1st i want to sum the 30/06 and so on...

I was sure it's going to be simple but im totally stuck!

I tried this with no luck: =sum({<Day=Date(Day-1)>} Cost)

(Day is my field of date)

Can you please help me?

thanks!

Zohar.

12 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Zohar

I used this on your example and it seems to work correctly:

=Sum({<[Date]={"$(=Date(Max([Date])-1))"},TheYear=,TheMonth=,TheWeek=,TheDay=,Quarter=>} Cost)

See the attached where I have added this into your example.

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Yay!! Finally 🙂

I would love an explanation of what i did wrong or why this answer works... i tried everything... or so i though!

BTW, i can't open the file you sent to me, it tells me that my personal edition has exceeded the limit of opening other people's files, but i copied what you did and it worked... is there any way to go around the limit of files?

Thanks a lot!!!!!!

Sitting on this for days now!

Zohar.

jonathandienst
Partner - Champion III
Partner - Champion III

Zohar

You're welcome.

zoharpos wrote:

BTW, i can't open the file you sent to me, it tells me that my personal edition has exceeded the limit of opening other people's files, but i copied what you did and it worked... is there any way to go around the limit of files?

Afraid not, without buying a license to upgrade your personal edition.

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein