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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / The Dynamics 365 Library / Conditional IIF Sum in SSRS...

Conditional IIF Sum in SSRS report at group level

Faisal Fareed Profile Picture Faisal Fareed 10,796 User Group Leader
I got a requirement where I want to show sum amount based on differnent conditions.

Simple Sum of amount can be shown with following expression;
=Sum(Fields!Amount.Value)

I tried following expression to show conditional sum on a group level; It did not work :(
=Sum(IIF(Fields!name.value = "Standard", Fields!Amount.value, 0))


I tried following expression after getting idea from this blog and it worked
=Sum(VAL(IIF(Fields!name.value = "Standard", Fields!Amount.value, 0)))

This was originally posted here.

Comments

*This post is locked for comments