Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ashishtams
Contributor II
Contributor II

Coallace like formula

I have a data like

ID     environment       Date   

1          Prod               23-Apr-17

1          Non Prod         -

2          Prod               01-May-17

2          Non Prod          -

In the pivot table i have used all the above columns as dimensions.

I have one expression to show counts against this.

I need to have the null date for Non prod to be shown same as prod date for that ID. (if date for non prod is null then show the dat of prod )

Need to write either calculated dimension or an expression.

Don't have option to work this out on DB or Script side.

Any help is appreciated.

Regards

3 Replies
Kushal_Chawda

create calculated dimension for Date

=aggr(MaxString(Date),ID)

ahaahaaha
Partner - Master
Partner - Master

Hi,

as variant for script in attached file

Regards,

Andrey

ahaahaaha
Partner - Master
Partner - Master

In attached file example Table chart with variant of your solve. If '-' in field [Date} in your data is NULL, in chart expression fragment Trim(Text(Date))='-'  should be replaced by ISNULL(Date)=-1.


In chart expression new field [CalDate] created in script not use. Thus you can solve your problem both at the level of the script and the chart.