This is a migrated thread and some comments may be shown as answers.

Telerik Reporting

1 Answer 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 19 Sep 2020, 04:04 PM
Hi 
I want to Sum on conditional basis on string field just like this If SalesTypes = "Ledger" then add Cash in Hand field 
or Sum(IIF(Fields.SalesType=="Ledger",Field.Cashinhand,0)))
So please help me out I have read so many article but didn't find any solution.

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 23 Sep 2020, 03:17 PM

Hello Muhammad,

You should use a single '=' sign. For example:

Sum(IIF(Fields.SalesType = "Ledger", Fields.Cashinhand, 0))

or 

Sum(Fields.SalesType = "Ledger" ? Fields.Cashinhand : 0)

Regards,
Todor
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or