Reports with complex repeated expressions within groups - ideal candidate for variables but you can't aggregate them!?
Hi all,
Given this:
date
(rowgroup)
categories (colGroup)
Total (forCategories)
some Percent
Result
Result With%
Total of Result And Other Things here
cat1
cat2
cat3...
1st
[ val
val
val]
Sum(Value)
Max(%)
Tot*reportVar+3300
Result*1+Max(perc)
result + resultWith% (NOTE:this is total from last two cells)
2nd
3rd
Totals
Total
Total
total
total
rowGroup by date
colGroup by category
there are some "REPORT" variables that do things like "total" for a dataset that is to be shown on the report and used in some calcs...
So now that I've (hopefully) set the scene...
Aside from the apparent BUG in vs2012 where you can't see or get intellisense on "Group Level" variables - which is REALLY tough when you aren't that familiar with variables I must say!! - variables seem like they would solve my problem.
But if I use report variables in the row level I get the "cannot be used in aggregates" when I try to "Add Total" which is annoying but I'll accept that as a limitation, but surely this can't be the first time someone has wanted
to achieve the above in a report!!
So what is the solution, there must be one...
While I know SSRS is NOT Excel its really surprising and annoying when something so simple like summing the last two fields is nearly impossible and I can't see WHY it should be so frustrating that I have to have complex formula repeated in several
cells... particularly when I get the formula wrong and then have to remember to CHANGE it in several different places?!
Is SSRS simply not the right tool for reports where you need to be able to see and follow calculated series and I should be encouraging the business areas to extract data into Excel spreadsheets with some kind of template setup or am I missing something
really obvious about SSRS that would stop me from pulling all my hair out...?
Hi noJedi,
If I understand correctly, you want to sum total values of the last three columns. In this situation, we can use custom code to work around the issue. Please refer to the custom code below to work around the issue:
Public Shared Value as Decimal=0
Public Shared Function GetValue(Item as Decimal) as Decimal
Value= value + Item
Return Item
End Function
Public Shared Function GetTotal()
Return value
End Function
Then use the expression below to calculate the multiplication result:
=Code.GetValue(Calculate Expression)
And use the following expression to calculate the sum value:
=Code.GetTotal()
Since you need to calculate three columns total values, we need modify the code repeat three times to get the values for each columns.
There is a similar issue, you can refer to it.
http://social.technet.microsoft.com/Forums/en-US/2084ef24-76d0-47c3-964a-340278d998c0/ssrs-2008-custom-code-to-properly-calculate-sums?forum=sqlreportingservices
If there are any misunderstanding, please feel free to let me know.
Regards,
Alisa Tang
If you have any feedback on our support, please click
here.
Alisa Tang
TechNet Community Support
Similar Messages
-
I need any help poss or ideas, it shows in my g-dashboard that someone is still using a computer to assess my devices. Also my setting get changed, I get signed into iCloud , . I don't use any sharing features everything gets turned off, all is pass code protected. My passwords are hacked constantly for my emails, I got in to my older email accts and found they were dedicated Japan only. I found them using google translating service more then one. They use the acssesability setting, including Braille . Key loggers always, many times if they don't like what I'm typing the keyboard stops. Found a patent running through on wiki on my iPhone in my name. Every thing keeps saying I'm a developer, and under education" domain. These are some of the basic also they had my name as a domain under hotmail I didn't understand just got the massage that or immagine1224 was Japan only
I need any help poss or ideas, it shows in my g-dashboard that someone is still using a computer to assess my devices. Also my setting get changed, I get signed into iCloud , . I don't use any sharing features everything gets turned off, all is pass code protected. My passwords are hacked constantly for my emails, I got in to my older email accts and found they were dedicated Japan only. I found them using google translating service more then one. They use the acssesability setting, including Braille . Key loggers always, many times if they don't like what I'm typing the keyboard stops. Found a patent running through on wiki on my iPhone in my name. Every thing keeps saying I'm a developer, and under education" domain. These are some of the basic also they had my name as a domain under hotmail I didn't understand just got the massage that or immagine1224 was Japan only
-
I am canadian and was given two gift cards for Christmas but cant use them. I get the message that they must be in the american store
HelpCorrect. Gift cards can only be purchased and redeemed in the country of origin. Given that it's the holidays you might consider gifting them to a needy child in your church.
-
After soak test update, I get error messages repeatedly. The majority are "unfortunately, messaging has stopped", but you can replace messaging with "android os", or any other process, as it happens with more than just messaging. I have had numerous people call and ask why I didn't reply to their texts...and I look, but have not received any new texts. YES, I have restarted phone. I have cleared data as well as cache on all apps. I have downloaded the vzw messaging app, which seems silly, since it happens with several different processes and apps, but all to no avail. I am missing texts from my employer, from my family. This did happen, but rarely, before this "soak test". It is now Kitkat version 19.6.3.obake_verizon.en.US. THIS is when I started having problems...like 50 times a day kind of problems! I have seen hundreds of posts all over the internet over the past 3 days. Does no one know how to fix this??? Shouldn't there be a way to revert phone to a pre-update state? and no, hard reset did NOT work!!!! I have been with verizon for well over 15 years, but I have not upgraded my lines and will not in July either. This is ridiculous. It's not like my games aren't working, it is my messaging and "android os"...my lifeline at work!
kristinaf333,
Oh no, I am sorry to hear your messages are not working since the software update. I greatlly appreciate doing all that troubleshooting to try and get the messaging application back in business. I know how much I rely on my messages so I can understand the urgency to get this resolved. Have you had a resolution ticket opened since you started experiencing issues with your messages? Does this happen with all contacts or just some? Please provide additional information to ensure we get to the bottom of this for you.
KarenC_VZW
Follow us on Twitter @VZWSupport -
I don't understand what's happening with my Music. All the songs that I purchased, that were previously on my phone, now show up with a Cloud next to them, but I can't play them. If I touch the Cloud, it turns into a red square, acts like it's downloading (which I can see happening in iTunes), but never downloads. The Cloud just stays there.
I've sync'd my phone, I've turned it to "show all music" in Settings, I've drag and dropped the songs/albums onto my phone again. I feel like I've tried everything I've seen recommended, but nothing works.
I've purchased a lot of music from iTunes. It should be there. What's going on?
P.S. Same thing happening with my purchased books. Ugh.Once you successfully add you iTunes library to iTunes Match, you go to Settings>iTunes & App Store on your iOS device and turn on iTunes Match. Your iTunes Match library will then appear on your iOS device.
-
Thank you for help but I can't remember my Email can I actevate it with out the apple ID pleas help me
Welcome to the Apple Community.
Sorry but without your previous Apple ID and password you cannot unlock your device. -
I have my Mac with Mountain Lion and my IPad synched and have Pages on both. I have doc in Word on my Mac I want to access on my IPad while I am away travelling. But I can't locate them. Where should I look to find my previously saved Word docs?
Welcome to the Apple Support Communities
It looks like you haven't got them on iCloud. On your Mac, open Pages and drag the Word documents to the iCloud window -
I am able to make it to the site for about 2 seconds and then I am quickly logged off and the statement, "There is a problem with your authentication, possibly due to inactivity. For your safety, you have been logged out and must sign in again to continue."
I don't have a clue as to the problem but since this is impacting my participation in these classes and ultimately could have a negative impact on my grade, I am more than a little concerned!Have you allowed this site to set cookies?
-
I am putting together a book with iBooks Author and all of my pages are numbered (3) how can I change them to an acceding order starting with page one?
Sorry I didn't get the tip link right: Change page number style
-
I ripped a new CD to iTunes and backed up to the cloud. The songs are already on my iPhone 4S, but I can't get them on my iPad. I already connected the iPad to my laptop and selected "Sync with the iPad over Wi-Fi". On the iPad I forced a Sync. Help!
Try deleting and redownloading by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store -
If you upgrade or renew your storage but no longer need it, you can cancel. If you cancel your storage plan within 15 days of an upgrade or within 45 days after a yearly payment, you can contact Apple for a full refund.
i upgrade a few minets ago. how can i contact apple to give me back money?Call the Apple online store for your country (1-800-MY-APPLE in the U.S. and Canada).
-
When I highlight objects, I'm able to move them with the arrow key but I can't drag them with my mouse.
Without system info and other details like e.g. your settings for bounding box display nobody can tell you much.
Mylenium -
If you have many tabs open (in my case 30 tabs), you cannot click every single tab with your mouse, you can only reach them by opening the tab list at the right.
You can create a folder with the home pages by using "Bookmark All Tabs" to open a specific page.
You can place that folder on the bookmarks toolbar or use the Bookmarks menu button that you can find in the toolbar palette to get access to that folder easily.
* Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
* "Bookmark All Tabs" can be accessed via the right-click context menu of a tab on the tab bar.
* "Bookmark This Page" can be accessed via the right-click context menu of that browser page. -
Hi, I have accidently sent my iPhoto from the dock to the trash, can I get it back? I've searched the trash but can't find it, my photos are still in the computer, but I can't access them with the iPhoto icon in the dash.
See this,
I lost my Safari /other on the Dock! "poof" "?" -
i'm having trouble with my iCloud photos. I thought i could be a little sneaky and take a photo of my photos that were more than 30 days old, so they would be uploaded along with my new photos. that part worked, but i can't select them to upload them to Snapfish?! Any thoughts? I'm bummed. I've got a few hundred photos on my iPhone that I'd like to move seemlessly - or somehow at all.
hopefully something in here is helpful?
http://support.apple.com/kb/HT4486
Maybe you are looking for
-
How do I get to a certain playlist on the shuffle?
How do I get to a certain playlist on the shuffle?
-
IMessage from iPhone 5 not working to iPad 2 internationally
Hi there, I am hoping someone can help me with clarifying why iMessage from my wife (iPhone 5, iOS 6.1.3, currently in South Africa) is not working to me (iPad2, iOs 6.1.3) at the moment. She is unable to send to me, but experiences no problems in s
-
Fn F7 defaults from Presentation on Projector and Notebook back to My Normal Display Settings
I am using my T61 to project slides in class. When I connect it to the data projector, turn on the data projector, and use Fn F7 to switch from My Normal Display Settings to Presentation on Projector and Notebook, the signal does not get through to t
-
Help I've just lost 8 years worth of iCal data
I've just lost 8 years worth of iCal data. Does Apple still have the data? My HD died. My Mac mini will not support the new "Cloud" portal. Does anyone have any ideas how I can retrieve my data from Apple? Thanks
-
I have multiple plots and how can I plot them with different depth on the Y-axis, Thks