Series subtotal

Hii,
i need to show subtotal  series wise.
e.g.if the a/c no starts with 1 no series,so all a/c no which starts from in one series and its subtotal.
like
a/cno amount
1000  1000
1001  2000
1002  3000
1003  4000
          10000
                                                                                Thanks.

Please see this example
http://social.msdn.microsoft.com/Forums/en-US/transactsql/thread/615f49e3-2ee4-4eb8-9f82-709573f398c1/
You could also use CUBE and ROLLUP
example: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=79808

Similar Messages

  • Subtotal by Series

    Hi, one question:
    This is My Query:
    SELECT T2.SeriesName,T0.CardName,T0.DocTotal FROM OINV T0 
    INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN NNM1 T2 ON T0.Series=T2.Series
    WHERE datediff(day,getdate(), T0.Createdate) = 0
    group by T0.CardName,T0.DocTotal , T2.SeriesNAme
    I have 2 series, i want(if possible) subtotal by serie
    Example:
    SeriesName Cardname Total
    Serie1      x         5
    serie1      x         5
    Serie1      x         5
    serie2      y        10
    Serie2      y        10
    serie2      y        10
    Serie2      y        10
    Subtotal Serie1: 15
    Subtotal Serie2: 40
    Its Posible?
    Regards

    Please see this example
    http://social.msdn.microsoft.com/Forums/en-US/transactsql/thread/615f49e3-2ee4-4eb8-9f82-709573f398c1/
    You could also use CUBE and ROLLUP
    example: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=79808

  • New DVR Scheduler Bugs: Priority Settings No Longer Working, Scrolling Series Schedules is Flakey

    Hi,
    After this last HD DVR update, I have two new problems:
    1) I can no longer set the priority of most of my series schedules. I have about 100 series schedule entries, which the DVR update probably wasn't tested for.
    Now when I try to set a series priority, it LOOKS like it worked, but if I get out of DVR options and go back into Manage Recordings, 90% of the time I find that the series priority is either unchanged, or (even worse) has bounced up to some unexpected random priority - Thus, I have to search the series list  to find it - Then I cannot move it back to where it's supposed to be!
    It seems that only moving a series priority a little bit will sometimes work, but moving the series from near the top of the list to near the bottom (or vice-versa) doesn't work at all, even though it may appear like it worked until the list is refreshed (either by paging up and down the list a few times, or by exiting the DVR manager and going back in).
    2) The scrolling is messed up now in the series schedule manager - When setting Priority, as I scrool up or down from the middle of the list using the arrow or Page buttons,  the list will end unexpectedly, making it impossible to actually drag the series to the bottom or top of the list. Then if you deposit the series at the "end" of the list, suddenly the rest of the list will then magically appear (of course, the series schedule you deposited there will no longer be where you deposited it - See problem #1). Obviously the list is running out of buffer space, so the next part of the list isn't being loaded while you're in the process of changing a series priority..
    Scrolling is also messed up just scrolling through the list without changing priority: Scrolling through my series schedules USED to be very FAST and painless using the Page (Channel) up/down button, I could scroll from top to bottom of my 100 series schedules in a matter of like 5 seconds. NOW, it takes forever and is a real pain to scroll from top to bottom, because the scrolling pauses on just about every other page - As though it ran out of buffer space and is having trouble loading the next buffer.
    I have a lot of series schedule entries so all the First-run Programs are at the top of the priority list, then all the re-runs are in the bottom half of the list. That's the only way I have found to prevent Re-Runs from hijacking new programs, since there's no DVR option to prevent re-runs from inteferring with new episodes (BTW, in order for this to work, the First-Run schedule must be created first. Then a duplicate First-Run and Reruns schedule must be created - Creating them in reverse order will throw a "Duplicate" error message).
    The DVR software has always been buggy and feature-depribed, but this is rediculous - To think the programming team didn't even test the scrolling and priority of series schedules is as bad as the ObamaCare website, and that's setting a very low bar! You HAVE to test EVERYTHING when you release new updates, even if the programmers say it won't affect anything else, because from my experience programmers develop tunnel vision (been there, done that myself), and if you have more than one person on the programming team, neither programmer will communicate their changes to anyone else (been there, done that too).

    I have the identical problem after the recent software upgrade which VERIZON did to my DVR.
    In addition, I have "Manual Series" listed under the "Manage Series Recordings" section of my DVR for about 10 of the tv shows that I have tagged to be recorded weekly. Several others have reported this seemingly related problem to this forum.
    I've tried twice to report the latter problem to VERIZON's technical support staff, but met with indifference in the first attempt (a guy recommended that I replace my DVR with a new one - an utterly ridiculous suggestion), and in my second attempt I got a somewhat helpful lady who couldn't correct this glitch and was unaware of others having same problem but promised to send it up the flagpole to higher level tech folks (best action that I realistically could get).
    As I told VERIZON's techies, I likely was not the only customer experiencing these problems - and your and others postings to this forum confirm my initial hunch.  VERIZON leaves a lot to be desired in the testing of their software "upgrades".

  • I am having a major issues to report machine -G6 series

    Hi. Team
                    This is a serious customer issue that I have to report .I am Owning an HP G6 series laptop. After 7 months of purchase I am facing lots of issue with this. The system is getting stucked sometimes and the controllers  of Keyboard and mouse are not working, While the time of boot up it is making big noise. All these issues I have reported to authorized service center of HP Maha electronics(Cochin).And the engineers over there observed the issue and replaced my hard disk two times. But the fact is like I am still facing the issue. Till today I have given two times to authorized HP service center (Maha electronics )Cochin. Days after the second time repair I had gone to US and I was unable to report the issue for the third time. I recently came to India and I have reported the issue in HP authorized service center (Maha Electronic)Bangalore. But by that time I came to know that my machines warrantee got over.And they neglected my request saying it cannot be done under warrantee.
                    Team, Please think that I have reported the problem during the time of warrantee itself, And your engineers couldn’t able to repair it properly to me.Frankly speaking, They have kept my laptop more than weeks under their custody for observation. But they were failed to find out the root cause of the issue. The folks reading this mail might be thinking that this issue can be, Now because of damage of some other stuff, but it’s absolutely no, Why because, You folks can check the description of the problem with the laptop during my first repair visit(Check the slip’s issue’s reported description) With this serial no([Personal Information Removed]).And still they are not specific about the root cause. This was happened mainly in (Maha Electronics)Cochin. They are not specific about the issue changing all parts by parts without any logical sense.
                    Folks, Act sensibly to your customer. It’s because of deep sadness I am saying these words. I was having 100% trust with your product(HP).But Now ,if anyone ask me about to which laptop to go with, I am having no words to tell them. How can I believe your engineers and give my words to my fellow beings.
    Thanks And Regards.
    Nijil [Personal Information Removed]

    Sorry to say we folks are not HP employees and have no access to your service records so there is not much help we can provide other than moral support

  • Field should not display in the subtotal row in ALV report after sorting .

    we have a requirement, after sorting and subtotaling, the output in ALV is -
    vbeln        amount1  amount2  amount3
    123           11              12            13
    123           12             13             14
    123           23             25             27 
    133           11              12            13
    133           12             13             14
    133           23             25             27
    Now the customer wants the ALV outpput in this fashion -
    123           11              12            13
    123           12             13             14
                     23             25             27    --->123 (vbeln) should not come in subtotaling row
    133           11              12            13
    133           12             13             14
                      23             25             27--->133(vbeln) should not come in subtotaling row

    Hi,
    if it helps you could create a hierachy. In this way you can define the field catalog for the lines and for the subtotal columns. The only thing is that you would always show the subtotal rows.
    You have references of hierachy alvs in
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c060fcb4-2c62-2b10-d2b2-f32407a5cc6f
    ALV Hierarchy
    alv hierarchy
    In this case it also sorts
    Sorting for ALV hierarchy
    I hope it helps.
    Edited by: Oscar Pecharroman on Aug 2, 2010 1:13 PM

  • SSRS 2008 Column Chart with Calculated Series (moving average) "formula error - there are not enough data points for the period" error

    I have a simple column chart grouping on 1 value on the category axis.  For simplicity's sake, we are plotting $ amounts grouping by Month on the category axis.  I right click on the data series and choose "Add calculated series...".  I choose moving average.  I want to move the average over at least 2 periods.
    When I run the report, I get the error "Formula error - there are not enough data points for the period".  The way the report is, I never have a guaranteed number of categories (there could be one or there could be 5).  When there is 2 or more, the chart renders fine, however, when there is only 1 value, instead of suppressing the moving average line, I get that error and the chart shows nothing.
    I don't think this is entirely acceptable for our end users.  At a minimum, I would think the moving average line would be suppressed instead of hiding the entire chart.  Does anyone know of any workarounds or do I have to enter another ms. connect bug/design consideration.
    Thank you,
    Dan

    I was having the same error while trying to plot a moving average across 7 days. The work around I found was rather simple.
    If you right click your report in the solution explorer and select "View Code" it will give you the underlying XML of the report. Find the entry for the value of your calculated series and enter a formula to dynamically create your periods.
    <ChartFormulaParameter Name="Period">
                      <Value>=IIf(Count(Fields!Calls.Value) >= 7 ,7, (Count(Fields!Calls.Value)))</Value>
    </ChartFormulaParameter>
    What I'm doing here is getting the row count of records returned in the chart. If the returned rows are greater than or equal to 7 (The amount of days I want the average) it will set the points to 7. If not, it will set the number to the amount of returned rows. So far this has worked great. I'm probably going to add more code to handle no records returned although in my case that shouldn't happen but, you never know.
    A side note:
    If you open the calculated series properties in the designer, you will notice the number of periods is set to "0". If you change this it will overwrite your custom formula in the XML.

  • SSRS show trend chart over column chart per series groups

    Need help in designing following report in SSRS, where I have a chart report with 2 category grouping fields and 1 series group field (as with category grouping, the reason being, i need to show columns in group of 4 joined together based on their grouping
    on top) .
    Below are my queries
    1. how to show my category grouping values on top of chart (showing group in different color) and series grouping values on bottom of chart (under each bar)
    2. I need to show trend line over each series group data.
    For example, First category group is over hotel name, second category group is over room type (deluxe, executive & suite) and one Series group over week number (for a month report), and the chart value is total occupancy (per hotel per room type per week
    number). Now for point 1, Hotel name and room type needs to be on top of the column (total occupancy) chart, where a week iteration number (1,2,3,4 for a month) at the bottom of the chart under every column.
    And for point 2, I need to show trend line per room per week occupancy was improved or not.
    Regards, Sujay

    Hi Sujay,
    According to your description, you want to display the two category group values at the top of the total occupancy value. Also you want to create a trend line over series values.
    For your first requirement, you can specify the Label data as a combination of two category group values and total occupancy values. Then change the location of series group value legend. Please refer to below screenshot.
    For your second requirement, you can add additional total occupancy values to the Chart Data panel, then change the chart type as Smooth Line.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • SSRS Chart group dataset by Year (series groups)/Month (category groups) force intervals to start at JAN?

    Hi all,
    trying to figure this out in REPORT BUILDER, but I guess I can go to VS if needed...
    I've got a data set that says "sales" and its basically order summarycontaining:
    id, dateplaced, and other stuff...
    I want to use this dataset to show trendline for annual qty of orders
    created line chart with "countDistinct(id)" as the series for X
    category groups = groupby "=Month(dateplaced)" and label "=MonthName(Month(dateplaced)"
    series groups = group by "=Year(dateplaced)" and label the same.
    I think this is working as intended, please correct if not.
    The PROBLEM I'm seeing is that since my dataset returns data starting around september so my "axis" starts in september... I really would prefer it starts at Jan and ends in December... I can't see any way to do this...
    The only things I could think of are;
    put fake data in dataset that returns "empty" values for jan in the first year of data...
    change the query completely to make sure tehre are "year" "month" groupings... somehow...
    but both of these approaches seem to be "hacky" and not very maintainable or clear...
    Help!

    Hi noJedi,
    According to your description, you want to you have the category group in your chart always start from January. Right?
    In Reporting Services, when we set category group, the records will sort by the sequence of data in database by default. However, we can apply expression in
    Sorting so that those records can sort by the month. We have tested your scenario in our local environment, here are steps and screenshots for your reference:
    1. Create a chart and put the corresponding expression into category and series group.
    2. Right click on category group. Go to Sorting tab. Put the expression below into sorting expression.
    3. Save and preview. The result looks like below:
    Reference:
    Sort Data in a Data Region (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How do I print #12 envelopes with HP Officejet 6500 E709n Series printer?

    When I try to print 4.75" x 11" (#12 envelopes) on my HP Officejet 6500 E709n Series printer, it gives an error msg. and will not print. Is there a work around for this, or do I have to use #10 size and make it do?
    Win XP pro, MS word.

    You could try creating 'paper' the size of the #12 envelope, and try that possibly.
    007OHMSS
    I was a support engineer for HP.
    If the advice resolved the situation, please mark it as a solution. Thank you.

  • Constant Printing Restart on a networked HP Officejet Pro 8500 A909N Series printer

    Hello,
    I'm curious if anyone has run into this problem before.  I have a HP Officejet Pro 8500 A909n Series printer that I have setup as a network printer.  This has been accomplished through a print server.
    I installed the printer's drivers based upon the cd that came with the printer, in the box.
    The problem is that whenever a user prints, say it's a simply one page document... the printer will repeatedly print that single page until it runs out of paper.  I have stopped/restarted the print spooler.  I've rebooted the printer and the print server.  I have deleted the drivers and readded them.  I've tried installing drivers from HP's website and then installing those.  I have attempted to delete the printer from the server and start from scratch.
    When I monitor the print queue, I can see the service restart after each document prints.  I can't figure out how to get this to stop.
    Does anyone have a suggestion; or has anyone run into this problem?  I'm not sure which forum to put this in.  I chose the Networks/Wireless forum, even though this is running on a wired network with wireless disabled.
    I certainly appreciate any asistance. 
    -Craig

    It ended up being an issue with the port.  I had used the same port as the last HP printer that I replaced.  This printer needs to run on a TCP/IP port, and not an HP port.
    Problem solved.
    Oh, and it was wired, with wireless disabled.

  • HP Officejet Pro 8000 Printer series - A809 Slow Response to Word Print

    Hello,
    When I try to print from a Word Document the HP Officejet Pro 8000 Printer series - A809 Printer takes on average 1:24 to respond and print. When I go into the printer's settings and print a test page the Printer takes about 3 seconds to respond and print the document. The Printer has a Dual Side Printing add on and the optional paper tray.
    Do you know what could cause such a long delay for the printer, especially when it only happens with word and other Microsoft Works Programs?
    -Captain Kemp

    I would also like to add that I am on a Mac OS X Version 10.6.4 with plenty of processing speed and Memory in case that would be useful in helping me

  • HP Color LaserJet Enterprise flow My Multifunction Printer series

    I have a new HP Color LaserJet Enterprise flow M880 Multifunction, the delivery paper after the fuser, it is no making the right job and I got a jamming code, I replaced the fuser but still making the same issue.

    Hey @Germanimagenet ,
    I suspect your question would be better answered in the HP Enterprise Business Community, as your HP Printer is a commercial model.
    My technical expertise is with consumer products and software, I am sure the commercial folks would be happy to help if you re-post your question for them to answer. The HP Enterprise Business Community is an HP Forum designed for the Commercial and Enterprise customers to help one another. I am sure you will find some HP folks there to help too.
    Click here to view the Printing and Digital Imaging. When the page opens you will see the option to 'Log in' or 'Register Now' on the right. The commercial forums are separate from the consumer boards, thus you will need to register if you don't already have a commercial account.
    You may find the HP Color LaserJet Enterprise flow M880 Multifunction Printer series page helpful while you wait for somebody in the commercial Forum to respond to your inquiry.
    Best of luck.
    I worked for HP.

  • Printing problem with HP deskjet 3050 all in one J610 series

    I have a HP deskjet 3050 all in one J610 series which I am using with Windows Vista Version 6.0 (Build 6006: Service pack 2).  Connecting is by USB port.  I have not used the printer for some time, but have done all the maintence checks & it is good to go.  When I want to print a letter the only thing that gets printed is the email address which is coloured blue.  I think the problem is in the settings of the printer features.  I can print the letter in gray scale but this is not easy to read and not suitable for business dealings.
    I would appreciate help with this problem.  A definition of the terms used in the printer features might help me resolve it by my self.
    Thanks
    This question was solved.
    View Solution.

    Hello @Tellen,
    Thank  you for visiting the HP Support Forums! I understand you are running into some print quality problems with your HP Deskjet 3050. I see when you attempt to print a letter you will only see the email address and its in blue ink.
    First I would like you to click here to download and run the Print and Scan Doctor > www.hp.com/go/tools- It was designed by HP to provide users with the troubleshooting and problem solving features needed to resolve many common problems experienced with HP print and scan products connected to Windows-based computers.
    What does the PSDR find? If you are still not getting black text, please continue here: Fixing Print Quality Problems for the HP Deskjet 3050 (J610) All-in-One Printer Series
    If after the troubleshooting has been done and you are still seeing the issue leave me with the following information:
    1. What is your current Operating system, Windows or Mac and which version?
    2. How is the printer connected, USB or Wireless?
    3. If you print a test page from the front panel do you see the same issue?
    I hope to hear from you soon.
    HevnLgh
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • Goods receipt subtotal is showing zero instead sum of quantity..!

    Hi Guys,
    1. Goods movement subtotal showing 0 instead of the total of the quantity.
    The check throwing the following error message.
    Update control of movement type is incorrect (entry 122 X X)
    Message no. M7226
    2. Purchase order data tab not showing item details for variance items but showing the message
    "This item has not been ordered."  But the PO items are ordered and present in the PO.
    Please find the screen shots.
    Thanks
    Sam

    Hi Sam,
    Kindly  Check table T156SC entries there is a entry missing in the table.
    And if required so kindly Maintain the missing entries in table.
    If entries of movement type 101 are prefect then
    Goto Transaction  -- SE37 ,
    Function module -- MB_CONTROL_MOVETYPE_GET_SINGLE
    Kindly do Set a break point to select statement which is failing at the table above at both the systems.You should be able to crack the error.
    Hope this will help you to solve the issue.
    And if not Kindly let us know.
    Thanks & Regards
    Ritesh Kumar

  • Powerbook G3 series 8.6 to 9.2.2 upgrade

    Hi,
    I just joined the discussions (today) so pardon my "novice" level - in advance.
    Background:
    =========
    I have a Powerbook G3 series (bought in 1999) 333Mhz, 256Mb RAM and 4GB HD. It is running OS 8.6 (came with it).
    I know that this is a "dinosaur" but remarkably it has "worked fine" (see further below).
    I would like to keep it and "make it more useful" as I contemplate a newer MAC purchase.
    So, I would like to upgrade from 8.6 to 9.2.2.
    I checked in Apple's "Mac OS 8 and 9 compatibility with Macintosh
    Computers" table and it shows that the G3 series can go up to 9.2.2
    I considered OSX V10.4 but this G3 is not a "built-in Firewire" and also does not have sufficient RAM and HD for OSX (as I was able to surmise upon further research). Also it appears that even if earlier OS X versions were compatible they might run too slow on such an old machine.
    Specific Questions:
    ==============
    I wanted to get educated on the "8.6 to 9.2.2" upgrade for any tips and warning so I searched the discussions topics re: such an upgrade and found very useful information from the various Q&As.
    After absorbing all of the relevant discussions, I still have the following questions:
    1) It was suggested in one of the threads that "....a firmware update would be required before installing OS9..."
    Would I need this for my G3 ? If so where would I obtain a copy ?
    2) It appears that to get to 9.2.2, I would have to do the following:
    a) do the firmware upgrade as per answer from 1) above.
    b) get a retail OS9 (white with gold 9) from one of the suggested sites
    and do the install
    c) download the 9 to 9.2.2 upgrade from one of the suggested sites
    and do the 9 to 9.2.2 upgrade
    I am not restating the suggested site names here.
    Are the above steps a) to c) correct ?
    3) Is there any reason or "gotcha" to not upgrade from 8.6 to 9.2.2 ?
    4) Would it make sense to consider some earlier version of OS X vs 9.2.2 ?
    Surprisingly and remarkably, my G3 has been working fine for the "most part" but I continue to run into snags when I want to upgrade Apps or when browsing certain sites or wanting to use later peripherals, e.g., flash disks.
    For example when I switched to Gmail - it does not show all the features and suggests later browsers which all require 9.x or higher. Gmail does work for older browsers but with limited features.
    Also, I am stuck with IE 5.1 (for Macs) and Netscape 6.x and can't use others, e.g., Mozilla.
    I am hoping that with 9.2.2 (or some version of OS X) I will be able to bring this G3 to a much more usable level without much $$ expense.
    Any help on my questions would be greatly appreciated.
    I hope my question information is not overly long.
    Thank You.
    Powerbook G3 series   Mac OS 8.6 or Earlier   333Mhz, 256M RAM. 4GB HD

    macd-sm,
    There are 6 updates (7 if you have an iPod what can be used with OS9) that can be applied after OS9.2.2 update has been applied.
    CarbonLib v1.6 - extremely useful for your system, read all about it and download it here: http://docs.info.apple.com/article.html?artnum=120047
    AppleScript v1.8.3 - again, useful for your use of OS9.2.2, it's all here: http://docs.info.apple.com/article.html?artnum=120128
    Authoring Support v1.1.9 - useful if you plan to burn CD on a supported replacement internal drive (that burns CD's) or a supported external drive, using iTunes or the Disc Burner in the Finder. It replaces Authoring Support v1.1.3 that was installed with OS9.2.2, so it's not going to break anything installing it. It's here: http://docs.info.apple.com/article.html?artnum=120083
    QuickTime v6.0.3 - It's up to you if you want to upgrade to QuickTime v6, or stick with v5 (that is installed with OS9.2). I keep an OS9.2.2 system as a retro system, for once in a while to run older software. As such I don't need the latest QuickTime for web surfing, so I stuck with v5, but you may want to use v6. It's here: http://www.apple.com/support/downloads/quicktime603formac.html
    Mac OS Runtime for Java 2.2.6: Pretty much essential if you're going to be using the web: http://docs.info.apple.com/article.html?artnum=120209
    iTunes v2.0.4: This is the latest version of iTunes for OS9. It was a bit of pig to find this download page, so download it and keep it, even if you decide not to install it straight away: http://docs.info.apple.com/article.html?artnum=120073
    I can only add to a possible source of OS9.2.1 retail CD's, eBay. Make sure you get a good clear picture of the OS9 install CD, along with any other software they may be selling with it. All the usual "caveat emptor" warnings about eBay apply. I've never bought this CD from eBay - ironically I gave mine away with the PowerBook.
    Maybe just another little note about the upgrade. You may find that some of your older apps, utils and games will cease to work under OS9. Maybe 90% of what I used, worked no problem. Then 90% of the rest worked after downloading a patch or two. I can only think of one or two very old games that stopped in OS9. If you have any "must-have" apps that you need to work in OS9, post details of them here and we'll do our best to let you know.

Maybe you are looking for

  • How to put a text in upper left hand corner for all the application?

    I want to put a text in upper left hand corner for all the pages on application? I don't want to put one page by another. Thank you.

  • Isit possible to have two Ni elvis writer in one Vi using the same device and using 2 different NI elvis?

    Hi is it possible to have two writer in one Vi with one elvis  and also use two different elvis on one Vi? I hope someone can or know the answer.

  • Jump menu problems in IE

    Hello, I am having trouble with the Dreamweaver Jump Menu. I have set up a basic page, used the Insert: Form: Jump Menu to navigate to different pages. It works fine in all browsers with or without the "Go" button, but it never works in IE 6 or 7. Is

  • How to resist a page to be closed

    Hi , If i want to close my browser when working on the application i like to track top right corner page close button so that before exit it will display a alert box or popup another page unloading parent page . How this can be implemented. Thnx in a

  • Layout problem Try to help me

    Hi friends, In my layout i have two repeating frames. RF1 and RF2 RF1 has group by frame. with in RF1 i have RF2. In RF1 i have only one field i.e)Table name : [ source field ](Group by field). In RF2 i have 3 fields Column Name : [column source ] va