Sql Qlikview未生成任何数据
我有一个事实表,左加入v_gate_pm_trip和v_fate_pm_trip。 我能够通过日期(到达)dt的月份名称生成qvd 然而,当它从常驻事实加载*时,整个月都没有数据被提取Sql Qlikview未生成任何数据,sql,qlikview,qliksense,Sql,Qlikview,Qliksense,我有一个事实表,左加入v_gate_pm_trip和v_fate_pm_trip。 我能够通过日期(到达)dt的月份名称生成qvd 然而,当它从常驻事实加载*时,整个月都没有数据被提取 FACT: LOAD "TRIP_ID", "PM_M", "ARRIVE_DT", MonthName("ARRIVE_DT") as MONTH_NAME, //find out the monthname present in the data SQL SELECT * FROM E
FACT:
LOAD "TRIP_ID",
"PM_M",
"ARRIVE_DT",
MonthName("ARRIVE_DT") as MONTH_NAME, //find out the monthname present in the data
SQL SELECT *
FROM EODWADMIN."V_GATE_PM_TRIP";
LEFT JOIN
LOAD "TRIP_ID",
"CREATE_DT",
"MODIFIED_DT";
SQL SELECT *
FROM EODWADMIN."V_GATE_PM_TRIP_CNTR";
// Start looping through each distinct value in the Month field
for i = 1 to FieldValueCount('MONTH_NAME')
// In-loop variable that will get the current increment value from the Month field
let sMonhValue = FieldValue('MONTH_NAME', $(i));
trace Storing data for MONTH_NAME --> $(sMonhValue);
// NoConcatenate is used to tell Qlik to not concatenate the same tables
NoConcatenate
// Load the data for the current iteration month from the main data table
TempTable:
Load
*
Resident
FACT
where
MONTH_NAME = $(i) order by ARRIVE_DT;
// Store one month data in qvd. The name of the qvd will include the month value
Store TempTable into FACT_$(sMonhValue).qvd;
// If the qvd files need to be stored somewhere else - just provide the path like:
//Store TempTable into c:\users\UserName\Documents\RandData_$(sMonhValue).qvd;
// Drop the temp table. Otherwise it will get concatenated to the "previos" temp table
Drop Table TempTable;
next
// At the end the app will contain only one table - `RandData`
“where MONTH\u NAME=$(i)order by arrival\u DT;”部分有些奇怪
$(i)是循环中的一个数字,您是否应该使用“where MONTH_NAME=”$(sMonhValue)“order by Arrival_DT;”?关于“where MONTH_NAME=$(i)order by Arrival_DT;”部分的一些奇怪之处 $(i)是循环中的一个数字,您是否应该使用“where MONTH\u NAME=”$(sMonhValue)“order by arrival\u DT;”?where MONTH\u NAME=”$(sMonhValue)where MONTH\u NAME=”$(sMonhValue)“