Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
sdmech81
Specialist
Specialist

Need to color code cells based on Year Range

HI,

We have data like below (sample data )

sdmech81_0-1636365740339.png

 

The expected results is as below: (We need to color fill based on condition the background in Table  using above data.)

sdmech81_1-1636365821399.png

looking for working solutions. Thanks

2 Replies
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hello,

Maybe below sample will help.

Table:
Load * Inline [
ID, Start, End
ABC,2020,2024
PQR,2022,2027
LMN,2025,2030
ABC,2026,2030
];

NoConcatenate
Table2:
Load
ID,
Start + IterNo() - 1 as StartEnd
Resident Table
While IterNo() <= End - Start + 1 ;
DROP Table Table;

Exit Script;

 

Output:

AshutoshBhumkar_0-1636369065602.png

Row : ID

Column : StartEnd

Values : Count(StartEnd)

Background Color of Values : If(Count(StartEnd)>0,Blue())

 

Thanks,

Ashutosh

 

sdmech81
Specialist
Specialist
Author

Thanks ..its works

 

Community Browser