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: 
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.