Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
MMCGLAESASAA
Contributor III
Contributor III

show last seven days date in graph in qlik sense

Hi All,

 

I am stuck in one formula can any body help me please. I need to show last seven days dates in bar graph based on current date.

 

 

Labels (2)
1 Solution

Accepted Solutions
MMCGLAESASAA
Contributor III
Contributor III
Author

Hi got the solution

i make a field in load editor If(WeekDay(TempDate)<>'Sun',IF(TempDate>=(TODAY()-8)and(TempDate <TODAY()),'Last 7',''),'') as Sevenday      and then i make measure =Date(If(Sevenday='Last 7',CallDate,''),'MM/DD')

and it works for me thank you.

 

 

 

View solution in original post

4 Replies
NitinK7
Specialist
Specialist

try

EXP-  Sum({<Date={"<=$(=Day(today()))>=$(=Day(today())-7)"}>}amount)

MMCGLAESASAA
Contributor III
Contributor III
Author

Not working please see the below image. Showing invalid value. 

NitinK7
Specialist
Specialist

could you attach here your sample data

 

MMCGLAESASAA
Contributor III
Contributor III
Author

Hi got the solution

i make a field in load editor If(WeekDay(TempDate)<>'Sun',IF(TempDate>=(TODAY()-8)and(TempDate <TODAY()),'Last 7',''),'') as Sevenday      and then i make measure =Date(If(Sevenday='Last 7',CallDate,''),'MM/DD')

and it works for me thank you.