Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

Sum for 3 month and a year

$
0
0

Hi everyone,

I have a dataset for reporting service which contains statuses of items for various periods of time.

I have two columns, one for 3 months and other for year, so I tried using to count items with respect to date:

=Sum(
    IIf(Fields!Status.Value = "working" and month(Parameters!Start.Value)-month(Fields!date.value)<3
        , 1
        , 0)
    )

However, my report doesn't render, unless I remove month part. How I can count for 3 month?

I've also tried adding different datasets for 3 months and year, however, lookup function doesn't work for IIF. Is there any other way?

Regards,

Yerkhan


Viewing all articles
Browse latest Browse all 28687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>