Click here to Skip to main content
15,887,923 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have one colum group section in my SSRS Report.

It have 3 colum names always..(CPU, RAM, DISK)


I added one more column outside the column group .
And i need the max value from the column group in this column(Max value from CPU AND RAM).

For Example, my utilisation column value should be as below,


CPU|RAM|DISK|Utilisation
23 21 24 23


Here Utilisation column value is 23(Because 23 is the max value from CPU AND RAM)


For this out put i used the expression like this,

=IIF(
(SUM(IIF(Fields!ReqColumns.Value="CPU",Fields!Details.Value,0))) >
(SUM(IIF(Fields!ReqColumns.Value="RAM",Fields!Details.Value,0)))
,Fields!Details.Value,0)

But not getting desired output..and it makes slow also.

Please help me..
need any clarification about my problem please let me know..
Thanks in advance.
Posted
Updated 17-Nov-13 23:51pm
v11
Comments
kanamala subin 18-Nov-13 4:48am    
My problem is not understandable to anyone..???
Nelek 18-Nov-13 5:54am    
You should be a bit more patient, don't forget CP has users in the whole world, so the one being able to answer you is maybe now working or sleeping. Besides users here don't get paid for helping, in the meanwhile you can continue trying on your own, that's the best way to learn

1 solution

I would recommend to move this to your query as it will be easier and faster. Also, adding an expression on a cell in the repeating section will always make it slow.

You can also try
=IIF(MAX(Fields!CPU.Value) > MAX(Fields!RAM.Value), MAX(Fields!CPU.Value), MAX(Fields!CPU.Value))


In general if you don't have to do anything with data in other rows then a simple if statement should work.

=IIF(Fields!CPU.Value > Fields!RAM.Value, Fields!CPU.Value, Fields!CPU.Value)
 
Share this answer
 

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