473,394 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Highlight max value in a subtotal row of a crosstab

33
Hi guys hope you all are fine....

I'm totally new to SSRS 2008 & stuck in a problem. So please help. :)

I have a crosstab report from northwind & I'm able to heighlight max value for each row with the expression below :
Expand|Select|Wrap|Line Numbers
  1. =iif(Fields!SalesAmount.Value = Max(Fields!SalesAmount.Value, "Year2"),"LightBlue","Transparent")
where "Year2" is my row group against year. There is also a column group against "Region" & the data is of sales amount. Now the code will not work for highliting the max for the subtotal row. So how do I highlight the max value for the subtotal row also.

Please see the following pic for more details :

Attached Images
File Type: jpg o758ns.jpg (104.5 KB, 551 views)
Sep 7 '11 #1
5 2559
ck9663
2,878 Expert 2GB
Do you want it to be highlighted because it is the highest or you want to highlight all the sub-total row? Can you just check if the description/year = "Total" then change the colors accordingly?

Good Luck!!!

~~ CK
Sep 8 '11 #2
sanndeb
33
@ck9663
I want to highlight only the max value, in this case the last value, not the total row....
Sep 9 '11 #3
ck9663
2,878 Expert 2GB
You might need to do something like iif(sum(fields) = max(sum(fields)),"highlight","not highlight"). It's obviously a pseudocode, so you have to modify it accordingly.

I'm not sure if double aggregation will work, though. Give it a try.

Good Luck!!!


~~ CK
Sep 9 '11 #4
sanndeb
33
Not really :( It gives error saying you can't use aggregate function inside another :(
Sep 9 '11 #5
ck9663
2,878 Expert 2GB
You might be able to do that using a different query (dataset), maybe.

Good Luck!!!


~~ CK
Sep 10 '11 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Tom | last post by:
I have a report based on a crosstab query that shows monthly automobile sales. The report is grouped on Make so that it shows the models under each Make. I want to now get the subtotals by Make and...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
1
by: Steve | last post by:
I have looked through the newsgroup for an answer to this but haven't been able to find anything resembling my situation. What I want to do is relatively simple, I think. I have a crosstab...
2
by: Sherman H. | last post by:
How to set the blank cell to 0 when a crosstab query is created? Thanks.
4
by: Judy | last post by:
I'm using Access 2003 and was wondering if it is possible to have a paramater selection within a crosstab query so that I wouldn't need to build a new table. I have a select query that I'm using...
2
by: Sparky Arbuckle | last post by:
Hello All! My problem is trying to calculate SubTotal in my FOR EACH NEXT Loop. I am looping through depending on how many of each different item is in the user's shopping cart. I am using each...
2
by: deejayquai | last post by:
Hi I'm trying to produce a report based on a dynamic crosstab. Ultimately i'd like the report to actually become a sub report within a student end of year record of achievement. The dynamic...
8
by: Penny | last post by:
(Access 2003 Multiuser Split DB, Windows XP Pro) Hi All, I would really appreciate just some basic tips on how to make a Crosstab Form based on a Crosstab Query. The query always has the same...
14
by: Tina | last post by:
My employer tracks productivity/performance of clinicians (how much they bill) each week, its averages for the month, and the 6 months. These averages are compared to their expected productivity....
5
by: vsteshenko | last post by:
Hello, This is my second post to the any usernet group and the first one was posted to the wrong one. I am currently working on creating an order form for sales associates at my work to be used...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.