試験QSDA2024 トピック4 問題15 スレッド
Qlik QSDA2024のリアル試験問題集
問題 #: 15
トピック #: 4
問題 #: 15
トピック #: 4
A data architect executes the following script:

Which values does the OrderDate field contain after executing the script?

Which values does the OrderDate field contain after executing the script?
おすすめの解答:D 解答を投票する
In the script provided, the alt() function is used to handle various date formats. The alt() function in Qlik Sense evaluates a list of expressions and returns the first valid expression. If none of the expressions are valid, it returns the last argument provided (in this case, '31/12/2022').
Step-by-step breakdown:
* The alt() function checks the Date field for three different formats:
* YYYYMMDD
* YYYY/MM/DD
* DD/MM/YYYY
* If none of these formats match the value in the Date field, the default date '31/12/2022' is assigned.
Values in the Date field:
* 20210131: Matches the first format YYYYMMDD.
* 2020/01/31: Matches the second format YYYY/MM/DD.
* 31/01/2019: Matches the third format DD/MM/YYYY.
* 9999: Does not match any of the formats, so the alt() function returns the default value '31/12/2022'.
Step-by-step breakdown:
* The alt() function checks the Date field for three different formats:
* YYYYMMDD
* YYYY/MM/DD
* DD/MM/YYYY
* If none of these formats match the value in the Date field, the default date '31/12/2022' is assigned.
Values in the Date field:
* 20210131: Matches the first format YYYYMMDD.
* 2020/01/31: Matches the second format YYYY/MM/DD.
* 31/01/2019: Matches the third format DD/MM/YYYY.
* 9999: Does not match any of the formats, so the alt() function returns the default value '31/12/2022'.
Kamiya 2024-12-19 08:35:55
コメント
他人の解答コメントを賛成するのも、その解答に一票を入れることになります。したがって、すでに同じ意見の投票コメントが存在する場合、新規コメントをする代わりに賛成することもできます。
コメントを通報する
コメント中
今すぐ 新規登録 / ログイン (無料です)。