Qlik Community

Ask a Question

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Our May 2021 end-to-end product release from Data Integration to Data Analytics is out! READ DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Fanch
Partner
Partner

Values Null on Script Qlikview

Hi Everybody,

I need to build a historic table by An QlikView Script 🤔.

My script begin like this :

Capture1.JPG

And the results :

Capture2.JPG

But i want to have a result like this with the value 0 that replace the character  "-" : 

Capture3.JPG

I've tried this  Capture4.JPG   without success 🙄

The script show me a issue "Invalid Expression" 🤕

Can you help me ?

Thanks,

Fanch

1 Solution

Accepted Solutions
Fanch
Partner
Partner
Author

Hi everybody,

Find the solution and, for me, it's better to do like this. 

After Load TABLE_HISTO, i build a another table :

Capture5.JPG

Thanks to Agigliotti, MayilVahanan and Ksrinivasan 😎

Have a nice day !

 

View solution in original post

5 Replies
agigliotti
Partner
Partner

Hi @Fanch ,

Maybe you can try with:

Count( Distinct Alt(HARDWARE, 0) ) AS CNT_WINDOWS

I hope it can help.

Best Regards

Fanch
Partner
Partner
Author

Hi agigliotti,

Thanks for your help, but i always have the same issue even with the try :

Alt( Count(distinct MATNUM)), 0) 🤔

MayilVahanan

HI @Fanch 

I think, country2 doesn't have OS like windows. In that case try like below,

T:
Load * Inline
[
Country, Hardware, OS
1, 20, Windows 10
2,30,Linux
3, 35,Windows 9
];
Join
Load Country, Count(DISTINCT Hardware) as CNT Resident T where OS like '*windo*' Group by Country;

Final:
NoConcatenate
Load Country, Alt(CNT,0) as CNT, Hardware, OS Resident T;
DROP Table T;

Change the column & table name based on ur source;

Thanks & Regards,
Mayil Vahanan R
Ksrinivasan
Specialist
Specialist

hi,

My dummy data:

Ksrinivasan_0-1614242381344.png

DIM: NAME_COUNTRY,

MEASURE: Sum(If(WildMatch(CNT_WINDOW,'*WINDOW*'),1,0))

Ksrinivasan_1-1614242435904.png

ksrinivasan

 

 

Fanch
Partner
Partner
Author

Hi everybody,

Find the solution and, for me, it's better to do like this. 

After Load TABLE_HISTO, i build a another table :

Capture5.JPG

Thanks to Agigliotti, MayilVahanan and Ksrinivasan 😎

Have a nice day !

 

View solution in original post