Click here to Skip to main content
14,732,778 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a table like below image
Table — ImgBB[^]

I wank to create a report like following image

Report — ImgBB[^]

How can i create report like above image?

What I have tried:

I have created three formula field for filter Banana, Potato and Corn. Formula code is here:
if {Table1.Purpose}='Banana' then {Table1.LoanAmount} else 0

if {Table1.Purpose}='Potato' then {Table1.LoanAmount} else 0

if {Table1.Purpose}='Corn' then {Table1.LoanAmount} else 0

I also created three formula field to sum Banana, Potato, Corn. Formula name is SBanana, SPotato, SCorn
sum({@Banana}), sum({@Potato}), sum({@Corn})
Posted
Updated 26-May-20 6:00am
v2

1 solution

Hi Rick,

May be getting result from sql queries can help you. Please try these:
select Purpose, SUM(LoanAmount)as Total from yourtable group by Purpose

select LoanStatus, SUM(LoanAmount)as Total from yourtable group by LoanStatus

select RecoveredBy, SUM(LoanAmount)as Total from yourtable group by RecoveredBy
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900