function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ramya BalakrishnanRamya Balakrishnan 

I have a requirement where client wants to see the below info in each account Record detail page.

I have a requirement in which client wants to see the below info in each account record detail page. we are thinking of Data table LWC component since it is not possible with reports.User-added image
Years will be CY2022 ,CY2021 and instead of total i need to display Diff.
.What is the best way to achieve this ? 
PriyaPriya (Salesforce Developers) 

Hey Ramya,

Kindly create the Data table to display the records and use the formula to calculate the difference of amount.

To create Data Table, Kindly refer this example and modify it as per your requirement :- 
https://www.sfdcstop.com/2022/04/lightning-datatable-in-lwc-how-to.html

Kindly mark it as the best answer if it helps.

Thank you,

Priya Ranjan