Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
jjvigneC
Contributor
Contributor

calculated field

Hello

I have this table

LOAD * INLINE [
Date, Code, Number
01.01.2019, TRUE, 7
01.01.2019, FAULT1, 3
01.01.2019, FAULT2, 1

01.02.2019, TRUE, 7

01.03.2019, TRUE, 7
01.03.2019, FAULT1, 2
];

I would like a view giving

date;% fault1;% fault2

01.01.2019;3/7;1/7

01.02.2019;

01.03.2019;2/7;

 

any idea ?

1 Reply
arpitkharkia
Creator III
Creator III

Create a straight table with Date as dimension and use the following expresions

MaxString({<Code={'FAULT1'}>}Number)
/
MaxString({<Code={'TRUE'}>}Number)

 

MaxString({<Code={'FAULT2'}>}Number)
/
MaxString({<Code={'TRUE'}>}Number)