ページネートレポートはすべての言語をサポートするようになりました。レポート処理で使用される言語は、数値、通貨、または日付のフォーマットに影響を与えます。例えば、特定の文化に依存する「フル日付/時間」フォーマッタを使用した場合、Power BIの言語設定が「de-DE」で「09-30-2024」の形式を用いるとエラーが発生します。最良の方法はVBの日付リテラル(例:#9/30/2024#)を使用することです。問題が発生した場合は、RDL Report.Languageプロパティを「en-US」に設定することで以前と同じ動作に戻せます。
ページネーションレポート: 新しい言語サポートの進化
最近、ページネーションレポートがすべての言語をサポートするようになりました。この変更により、レポート処理で使用される言語は、数値、通貨、日付などのフォーマットに影響を与えるだけでなく、レポート式の処理にも影響を及ぼします。
文化依存フォーマッタの例
例えば、文化依存の「フル日付/時間」(“f”)フォーマッタを使用した実行時間式の場合の違いを見てみましょう。
-
英語(アメリカ)用のフォーマット:
-
ドイツ語(ドイツ)用のフォーマット:
このように、異なる言語設定によって、日付の表示形式が変わることがあります。詳細は、こちらで文化依存フォーマッタについて学ぶことができます。
ページネーションレポートの動作への影響
この変更により、ページネーションレポートの動作に影響を及ぼす可能性があります。例えば、レポート内で「09-30-2024」という日付形式とCDate関数を使用した式があり、Power BIの言語設定が「de-DE」の場合、エラーが発生します。このような場合のベストプラクティスは、VB日付リテラル(例: #9/30/2024#)を使用することです。VB日付リテラルは、Power BIの言語設定に関係なく常に同じ動作をします。
もし上記のような問題が発生した場合、以前の動作に戻すための簡単な回避策があります。RDLのReport.Languageプロパティを「en-US」に設定するだけです。ただし、根本的な問題を解決することが強く推奨されます。
ページネーションレポート作成の詳細
ページネーションレポートの作成方法については、Power BI Report Builderや、Power BIサービスでのページネーションレポート作成、さらにはレポートのエクスポートについて学ぶことができます。
これにより、国際化対応が進んだページネーションレポートを利用して、より柔軟で便利なレポート作成が可能となります。
————-
Paginated reports supports Power BI language in the Power BI service | Microsoft Power BI Blog
Source link
Paginated Reports in Power BI now support all languages, which impacts the formatting of numbers, currencies, and dates based on the selected language. This change affects how report expressions are processed. For example, the execution time expression using a culture-dependent formatter will display differently in “en-US” compared to “de-DE.”
When using a date format like “09-30-2024” with the CDate function and the language set to “de-DE,” it may result in an error. To avoid such issues, it is recommended to use VB date literals (e.g., #9/30/2024#), which provide consistent behavior regardless of the language setting.
If you encounter problems due to this change, you can revert to previous behavior by setting the RDL Report.Language property to “en-US.” However, it is advised to address the underlying issue in the RDL for long-term solutions.
For more information on creating and exporting paginated reports in Power BI, users are encouraged to explore the relevant resources in Power BI Report Builder and the Power BI service.
コメント