I want to process text type date data stored in a record type as date type data.(レコードタイプに格納されたテキスト型の日付データを、日付型データとして処理したい)

Hello, thank you for everything.
There is something I would like to discuss with you today.

Within the interface's expression mode, I am attempting to retrieve data from a record type, aggregate that data, and display it in a graph.
The aggregation process is done in units of month and year, such as the total amount for each month in 2024.
I prepared a temporary record type for practice. If all the target data contained in the record type is of date type, the implementation was successful.

However, among the designed record types, there are fields that are text type and have date data. This is text type data such as "2024/11/04".
I would like to convert the value of this item to date type data between acquisition and aggregation processing. If it is a text type, conversion can be achieved using todatetime().

However, this function does not work well for data obtained from record types. The error is that it is a record type type or a record field type, and that these types cannot be converted to a date type.

Is it not possible to convert the text type date data included in the record type to date type within the interface expression?
I would like to borrow your help. Thank you.

こんにちは、いつもありがとう。
今日は皆さんに相談したいことがあります。

インターフェースの式モード内で、レコードタイプからデータを取得し、そのデータを集計処理してグラフに表示する処理を試みています。
集計処理は月と年の単位です、2024年の各月の合計金額、のような形です。
練習のために仮のレコードタイプを用意しました。レコードタイプに含まれる対象のデータがすべて日付型の場合、実装は成功しました。

しかし、設計されたレコードタイプの中には、テキスト型で日付データを持っている項目があります。「2024/11/04」というような形のテキスト型データです。
私はこの項目の値を、取得から集計処理の間で日付型のデータへ変換したいと考えています。テキスト型であれば、todatetime()で変換を実現できるようです。

しかし、レコードタイプから取得したデータはこの関数では歯が立ちません。レコードタイプ型、あるいはレコードフィールド型となり、これらの型から日付型へ変換することはできないとエラーが出ています。

レコードタイプに含まれるテキスト型の日付データを、インターフェースの式内で日付型に変換することは不可能なのでしょうか?
お力をお借りしたいです。よろしくお願いいたします。

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data