Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All ,
How to find data for conditional intervals , without using multiple if or hard coding as script level ?
In below data i want to populate values of table 2 , based on the value in Measure field of the table 1 .
Thanks & Regards
Shekar
Try this
Vector_Observed_Temp:
CrossTable(Range, Data)
LOAD Vector_Observed,
[0 - 9],
[10 - 23],
[24 - 33],
[34 - 52],
[53 - 71],
[72 - 87],
[88 - 100]
FROM
[..\..\Downloads\Conditional Intervals.xlsx]
(ooxml, embedded labels, table is Vector_Observed);
Vector_Observed:
LOAD Vector_Observed as Vector,
SubField(Range, '-', 1) as Start,
SubField(Range, '-', 2) as End,
Data
Resident Vector_Observed_Temp;
DROP Table Vector_Observed_Temp;
MainTable:
LOAD Date,
Vector,
Measure
FROM
[..\..\Downloads\Conditional Intervals.xlsx]
(ooxml, embedded labels, table is Vector);
Left Join (MainTable)
IntervalMatch(Measure, Vector)
LOAD Start,
End,
Vector
Resident Vector_Observed;
Left Join (MainTable)
LOAD *
Resident Vector_Observed;
DROP Table Vector_Observed;
Should be Extended IntervalMatch
Hi SHekar,
Check the Intervalmatch function: https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptPrefixes...
It's exactly what it used for
Felipe.
Try this
Vector_Observed_Temp:
CrossTable(Range, Data)
LOAD Vector_Observed,
[0 - 9],
[10 - 23],
[24 - 33],
[34 - 52],
[53 - 71],
[72 - 87],
[88 - 100]
FROM
[..\..\Downloads\Conditional Intervals.xlsx]
(ooxml, embedded labels, table is Vector_Observed);
Vector_Observed:
LOAD Vector_Observed as Vector,
SubField(Range, '-', 1) as Start,
SubField(Range, '-', 2) as End,
Data
Resident Vector_Observed_Temp;
DROP Table Vector_Observed_Temp;
MainTable:
LOAD Date,
Vector,
Measure
FROM
[..\..\Downloads\Conditional Intervals.xlsx]
(ooxml, embedded labels, table is Vector);
Left Join (MainTable)
IntervalMatch(Measure, Vector)
LOAD Start,
End,
Vector
Resident Vector_Observed;
Left Join (MainTable)
LOAD *
Resident Vector_Observed;
DROP Table Vector_Observed;
Thank You Bare Bhai ..