web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Currency code in report layout

(0) ShareShare
ReportReport
Posted on by 70

Hello

I created a dataset and report on the basis of that which is taking data from "Sales header" table.

I used this in expression of curency field :=iif(First(Fields!Currency_Code.Value, "DataSet_Result")="",First(Fields!LocalCurrencyCode.Value, "DataSet_Result"),First(Fields!Currency_Code.Value, "DataSet_Result"))

But the currency field shows blank.


How can I fix this ?

Categories:
  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,306 Super User 2026 Season 1 on at

    Is the Currency Code on your first Sales Header record blank ? Try removing the First()

  • tanveerk Profile Picture
    70 on at

    Actually I was using getting records from GL setup in case there is no currency on the record (meaning local currency to be used). I learnt getting data through variables in OnAfterGetRecord trigger in the report and its working now using the variable value.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans