How to suppress row when one column has zero using condition
Hi Experts,
How do I suppress row when one column has zero.
I read it is possible using conditions.
How ?
Thankyou.
Check this
1. for Query Properties, go to the Display tab and Supress Zeros is "Active"
2. select the Structure, right-click, select Properties, then click "on" Also Use Zero Suppression for Structure Elements
http://help.sap.com/saphelp_nw04/helpdata/en/a4/dd3841d132d92be10000000a1550b0/frameset.htm
Hope it Helps
Chetan
@CP..
Similar Messages
-
How to select rows whose one column contains some specific characters ?
These is a table say T1 with a column say C1
Let the field C1's values be:
row 1)DE/SPT/A/FWD
row 2)G/SPT/DE/DE/SPT
row 3)R/FWD/SPT/A/FWD/FWD
row 4)A/A/DE/SPT/FWD
row 5)FWD/SPT/E/DE/A
How to get only those rows whose C1 column contains FWD in last ?We can solve this with the simple use of a wildcard:
select *
from t1
where c1 like '%FWD'
/Note that this query will execute a full table scan, because any index you may have on C1 will be ignored: indexes are organised on the leading characters.
cheers, APC -
Stacked Column Report bug when one series has zero for data
Hi,
I'm encountering an issue with the stacked charts. In my chart, I want to show the total of active and expired records for each year. I created a series for each, and the SQL for them is below:
Active (1st series created):
select '' link,to_char(preparedate,'YYYY') label,count(*) Active
from cts.contract
where preparedate is not null and
to_char(preparedate,'YYYY')>to_char(sysdate,'YYYY')-10
and expired = 0
group by '',to_char(preparedate,'YYYY')
order by '',to_char(preparedate,'YYYY')
Expired (2nd series):
select '' link,to_char(preparedate,'YYYY') label,count(*) Expired
from cts.contract
where preparedate is not null and
to_char(preparedate,'YYYY')>to_char(sysdate,'YYYY')-10
and expired = 1
group by '',to_char(preparedate,'YYYY')
order by '',to_char(preparedate,'YYYY')
When I see the chart output, I expect the chart to show the stacked columns with expired stacked on top of active, and ordered by year. However, for the two years in our database where there are no active (series 1) records, only expired (series 2) ones, these bars are displayed to the right of the other years. Oddly, for the year where all records are active, and none are expired, there is a sliver at the top of the bar for that year showing as the color for expired, and hovering over that portion of the bar displays zero. I understand that with the other two years where the series with zero would be stacked on the bottom, and therefore not visible, but why does the chart put these years after the other ones that are in order? Since my records are from 1998-2007, and the two years without series 1 records (active) are 1999 and 2002, the years are shown in this order: 1998, 2000, 2001, 2003, 2004, 2005, 2006, 2007, 1999, 2002.
Any help with how to make these two years show in the correct order with the others is appreciated.
Thanks,
BrianAfter switching from Thin driver to OCI the problem went away.
-
How to calc sum of one column, based on the condition of another column?
I would like to create a formula that adds up the total cost from column F for each specified service in column D. For example, the result for PM (project management) would be $495. Any ideas?
I think you could use this formula, using your cell references:
=SUMIF(D4:D21,"=CM",F4:F21)
Then, change the "=CM' to "=PM", etc. for each service.
Like JaxJason, I can't test this in Numbers right now, but it works in Excel, and the functions are identical.
SUMIF(test-range, "condition", [sum-range]):
* test-range: A reference to the range of cells containing values to test. Must be the same dimensions as sum-range.
* "condition": Any comparison statement that results in a logical TRUE or FALSE value.
* sum-range: Optional; a reference to the range of cells containing the numbers to be added. Must have the same dimensions as test-range. If omitted, test-range is used.
I hope this helps.
- Michael
Message was edited by: Apple fan Michael -
How do I switch from one column to the next, skip around? Tab key doesn't seem to do itl. I can't find any "help" in "help". Help. Please. Thank you.
Hi Karen,
It is simple.
Columns fill with text as the text becomes enough to spill over from the previous column. Below is an example. I have used a huge (6" botom margin setting to shorten the page to a reasonable length for a screen shot, and turned on Show layout and Show invisibles so the column boundaries and invisible characters can be seen. Here there's no text in column 3 as there is only enough text to fill column 1 and part of column 2.
As more text is added, it eventually fills column 2 and flows into column 3:
You can force the text into the next column by inserting a column break. Here, a column break has repalced the paragraph break in column 2 (after 'fascilisi."):
Regards,
Barry -
How do I move from one website to another using Safari, while still allowing Pandora to provide music in the background? It seems that when ever I open a new URL, I lose Pandora.
Try running Pandora in its own tab and leaving that tab open (Safari 7.1.5, OS 10.9.5). I don't have Pandora to try this, but it works for me otherwise.
Good luck
srb -
How can I check how many times or when an app has been re-downloaded on my iphone
How can I check how many times or when an app has been re-downloaded on my iphone. I know how to check purchases but I am looking for how to check when an app had been re-downloaded on my device whether it's through my device or Apple ID
You mention "lack of control" several times. The control is there - you control the Apple ID and password that owns the app. No other Apple ID can use the app. You have not shared your Apple ID or password with anyone, so you and only you own the app.
Therefore, the number of times the app is downloaded or re-downloaded is completely irrelevant. You might, for example, decide to purchase a new iPhone or iPad and download the app there. Or the app developer may issue a new version which you download. None of this matters regarding your "control" of the app. All that matters is that you own it and nobody else can use it. -
How to display more than one column with for each
Hi guys,
how to display more than one column with for each like below?
for each
Item1
Item2
Item3
Item4
Item5
Item6
Item7
Item8
Item9
Item10
End for each
for each
Item1 Item2 Item3
Item4 Item5 Item6
Item7 Item8 Item9
Item10
End for eachTake a look at this to see if the solution provided would work for you: https://blogs.oracle.com/xmlpublisher/entry/multi_column_row_woes
Won't you have more than 10 records in your data file ? If you are going to have only 10 items then you may be able to use position() function to limit it to 3 each..
Take a look at this: https://blogs.oracle.com/xmlpublisher/entry/turning_rows_into_columns
Thanks,
Bipuser -
How to copy data from one column to other column
hi,
can any one tell me how to copy data of one column to other column for some specific data
example
productno ocalyear actualsales prevplansales currentplansales
p001 2007 100 120
p002 2007 90 100
p003 2007 120 130
p004 2007 140 120
p005 2007 150 150
i want to copy data of p001 and p002 from prevplansales to current plansales
productno ocalyear actualsales prevplansales currentplansales
p001 2007 100 120 120
p002 2007 90 100 100
p003 2007 120 130
p004 2007 140 120
p005 2007 150 150
is it possible to do?
please suggest me.
i will assign pointsHi,
I think the needed techniques are already described in the documentation, e.g. in
http://help.sap.com/saphelp_nw70/helpdata/en/45/e641e4c61256dee10000000a114a6b/frameset.htm
or
http://help.sap.com/saphelp_nw70/helpdata/en/45/e641e4c61256dee10000000a114a6b/frameset.htm
The main techiques used in the above example to bind the filter of the planning function to selected (marked) objects in the analysis item or to drop down boxes (or both). These techniques are used in the above examples.
Regards,
Gregor -
Hi all,
I want to display the rows as one column
Source Amount
A 100
A 200
B 300
B 400
C 500
C 600
I want to display like below
Sum(A) Sum(B) Sum(C)
300 700 1100
Is it possible to do in SQL
ThanksSELECT
SUM(DECODE(source, 'A', amount, 0)) sum_a,
SUM(DECODE(source, 'B', amount, 0)) sum_b,
SUM(DECODE(source, 'C', amount, 0)) sum_c
FROM
t
SUM_A SUM_B SUM_C
300 700 1100 -
How dose family sharing work when one person wants to use a gift card?
How dose family sharing work when one person wants to use a gift card?
kokogo,
Purchases made in the iTunes and App Stores will first attempt to use any store credit that exists on the purchaser's account. Barring sufficient credit, the family organizer's card will be used for the purchase.
First, their store credit will be used to pay the partial or total bill. The remainder will bill to the family organizer's card. As the family organizer, any receipts generated by the transaction will be sent to you. Learn more about how iTunes Store purchases are billed.
Family purchases and payments
https://support.apple.com/en-us/HT201079
Sincerely,
Allen -
Thank you for your service.
I was most disappointed to find, however, that the letters I really wanted (Adobe Garamond Alternate Caps) is not in this collection and indeed, one now has to use another fancy designing program to construct those letters. I can’t afford to buy Photoshop just to construct two special capital letters. I’ve used the B and M in my logo for Balquhidder Music for years - but from jpgs - and I was hoping to have more flexibility in the future. I spent $169 to make sure I am in compliance. But I didn’t get anything of use to me.
I can’t understand why those Alternate Caps are not part of this - or any other package. I thought Adobe was capable of amazing things.
I assume I am whistling in the dark. So have a nice day.Actually, when Adobe moved from Type 1 fonts to OpenType CFF fonts, all the so-called “expert typefaces” were consolidated into the base fonts. In other words Adobe Garamond Pro Regular not only has the Western Latin characters of the original Type 1 version of Adobe Garamond, but also has alternate Latin capitals (with titling, titling floating accents, and stylistic alternates), alternate Latin lowercase (swash and superiors), Latin small capitals (alphabetic and floating accents), ligatures, multiple numeric forms (including lining tabular, lining proportional, oldstyle tabular, oldstyle proportional, superscripts, scientific inferior, numerator, denominator forms, fractions, mathematical operators, etc.) plus a raft of other special symbols.
OpenType fonts are Unicode-based and allow for more than the 256 characters in Type 1 fonts which required multiple typefaces all with mappings to a standard keyboard to accommodate all these glyphs.
Thus, hopefully your disappointment will turn to joy.
To assist you in understanding OpenType fonts and to show you what is in the current Adobe Garamond fonts, I have attached a few PDF files for your perusal.
Let us know if you have any questions.
- Dov -
API0408: Within same namespace domain one object has already used the name
Migration of dimensions from 10.2.0.4 to 11.2.0.1 getting above message
Noticed when dimensiions imported in via mdl file, onl levels tab, applicable items box are al unchecked
When try add check the box to match what existed in 10.2.0.4 get message
Within same namespace domain one object has already used the name <object_name>
Can recreate the dimensions but didn't wantto have to.Are you going to be deploying the dimensions? The namespace was changed in the database for dimensions and tables and I think that's why you are getting that error from OWB. If you are not deploying the dimensions then I think you can configure the module to generate 10gR2 code and avoid the validation error - otherwise you will have to change the dimension names ... I think.
Cheers
David -
How to include iview from one page to another using FPM
Dear experts
using ECC6 NetWeaver 7
I have followed this WIKI guide step by step.
How to include iview from one page to another using FPM?
https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=118423928
On step 4 I couldnu2019t create an Iview based on view u201Cpersonal datau201D u2013 it was not possible.
The view wasnu2019t there (in comprehend to the WIKI)
What could be the reason?
I have full authorization on the portal.
Thank in advance for your help.Please check this.
Re: Organizational History iView
/thread/370447 [original link is broken]
Regards,
Sandip -
Hi All,
Question: How do I filter rows out of a query where multiple columns are equal to a single question mark character?
Background: I'm using SQL 2008 R2. Furthermore, the part of my brain that helps me create less-than-simple queries hasn't been working for the last 4 days, apparently, and now I need help.
We have about 4,000 rows in a table. This data set was generated from an exported report, and many of the rows in the detail table were not actual data rows but were simply "header" rows. For those table rows, most of the columns have
a single question mark as the value.
Some of the detail rows have one or more question mark values, too, so it's important that these rows don't get filtered out.
When I include criteria like "WHERE col1 <> '?' AND col2 <> '?' AND col3 <> '?' AND col4 <> '?'", all rows with a question mark value for even a single one of those columns get filtered out. How do I filter out rows
where all columns 1-4 contain a question mark value?
Thanks for your help,
EricI just tried to create to create a scenario for you. Please see ig you're looking for something like this.
Create table test_Question_mark
RecordID INT identity(1,1),
Col1 varchar(10),
Col2 varchar(10),
Col3 varchar(10),
Col4 varchar(10),
insert into test_Question_mark (Col1, Col2, Col3, col4) values ('?','?','?','?')
insert into test_Question_mark (Col1, Col2, Col3, col4) values ('?','??','?','?')
insert into test_Question_mark (Col1, Col2, Col3, col4) values ('?','??','??','?')
insert into test_Question_mark (Col1, Col2, Col3, col4) values ('??','??','??','??')
insert into test_Question_mark (Col1, Col2, Col3, col4) values ('?','?','?','?')
insert into test_Question_mark (Col1, Col2, Col3, col4) values ('??','test ??','??','??')
insert into test_Question_mark (Col1, Col2, Col3, col4) values ('??','test ?','??','??')
--drop table test_Questio_mark
select * from test_Question_mark
select * from test_Question_mark
WHERE
(CHARINDEX('?', Col1,1) > 0 AND CHARINDEX('?', Col1, CHARINDEX('?', Col1,1)+1) = 0) AND
(CHARINDEX('?', Col2) > 0 AND CHARINDEX('?', Col2, CHARINDEX('?', Col2,1)+1) = 0) AND
(CHARINDEX('?', Col3,1) > 0 AND CHARINDEX('?', Col3, CHARINDEX('?', Col3,1)+1) = 0) AND
(CHARINDEX('?', Col4,1) > 0 AND CHARINDEX('?', Col4, CHARINDEX('?', Col4,1)+1) = 0)
--drop table test_Questio_mark
I hope above solution will help.
Thanks!
Ashish.
Maybe you are looking for
-
EJB 3.0 integration in FDS, with Annotations
We have been working with the EJB 3.0 implementations and see a lot of synergy between the new approach to enterprise Java with this new specification, and would love to see FDS add an adaptor to support it. Our new entity/session beans have annotate
-
I have a apple account, but when I try to download apps, I need to submit my credit card, and my country is not in the list of countries. I tried using the default of USA, but it is invalid. Please help
-
Multiple Airplay Options?
Can I choose multiple devices at once for Airplay? Meaning, can I choose the audio from music to Airplay to the iPad, my Apple TV and an Express powered set of speakers? When I press the Airplay icon they all come up, but so far am only able to choos
-
Need to re-install Acrobat Pro 10.0.
Need to re-install Acrobat Pro 10.0. I have the original License Certificate. Can I donwload from the Product Trials (Acrobat Pro XI) to get this started?
-
Certain website not working...
So I have owned my Macbook Pro for about 3 weeks now and i still am unable to access the website "www.hotmail.com." For some reason it won't load the page and instead jumps from website address to website address and never loads. Anyone have any idea