SSRS Chart grouped by range of values
Hello,
Can you guys assist in the following scenario where I have two columns "Staff" and "Age"
Staff Age
John 23
Bob 25
Mike 27
Caren 35
Bonny 42
I'm trying to build a Column chart in SSRS 2008 that would Count th number of staff in every age range (20's , 30's, 40's)
I'm hoping to get three columns in the chart : one field for the 20's with 3 people in it; and two other columns for the 30's and 40's with one staff in each.
I can't figure out the expression that should be used in the categories group of the chart.
thanks in advance
Thanks Elvis for a gr8 solution, i followed your solution but with that i got another problem,
please help me to solve this,
Now my problem is, if Data set bind with chart do not have any row for a particulate category (like "8-14 Days") then chart is not showing data for in with 0 value,
my requirement is if no data available for a age category Zero value is to be displayed like,
Please help me on this.. it is urgent for me...
Similar Messages
-
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 -
Plot empty point in line chart with previous non empty value
Hello,
I have a problem to plot series data in SSRS line chart, with the empty point, I don't want use average and zero provided by the report builder, I want use the last non empty data to fill the empty point, tried to use expression =Previous(Field!Value), no
luck, any one have some good idea?
P.S. do not want to use query to fill the null with previous non null value, just from the performance point view. at last , the chart should have some line as square wave with different height, if I use average for empty point, it shows slop wave line which
is not reflect the real production.
Thanks
RichardHi Richard,
In Reporting Services, if the chart type is a linear chart type (bar, column, scatter, line, area, range), null values are shown on the chart as empty spaces or gaps between data points in a series. By default, empty points are calculated by taking the average
of the previous and next data points that are not null.
If we want to use previous value to replace the empty value, please refer to the following steps:
Right-click the field which displayed in Y axis (Height) to open the Series Properties.
In the Value field to modify the expression to look like this:
=iif(isnothing(Sum(Fields!Height.Value)),previous(sum(Fields!Height.Value)),sum(Fields!Height.Value))
The following screenshot is for your reference:
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
No material group assigned to this value
Hello, I am trying to add new value to a purchasing organization in extended attributes about product categories.
When I add new value system throws an error message: "No material group assigned to this value", this material group is created in R/3 backend but not in SRM. How can I transport this value to SRM? Only 3 values not all data about material groups.
Thanks in advance
Rosa RodríguezHello, I have this in the transactions that you mentioned:
r3ar2
Request Name: ESN
Adapter Object: DNL_CUST_PROD1
RequestType: Request: Objects could be loaded from R/3 backend / CRM DB
Use One with mark
Table: T023T
FieldName: MATKL
I/E: I Inlusive defined set/array
Opt: BT
Low and High: range of material groups that I want to replicate.
I put in transaction R3ar4 the request name and when I check on transaction r3ar3 this transaction is running and take long time .... I think there is a problem because are only 3 product categories
What can I do to check if the system failed or something similar?
Thanks
Rosa Rodríguez -
Is there any way that I can hard code a color into a chart and still filter out values?
I have 5 divisions, each with a specific color. I have put them into a stacked column chart and it looks fine. My issue arises when I try to filter out some of the divisions. The colors do not stay with the specified divisions.
Ex.)
Div 1 = Red
Div 2 = Green
Div 3 = Black
When I filter out Div 1, this is what I see:
Div 2 = Red
Div 3 = Green
I have tried standard delivered filter panel, and check-boxes using CHART_1.setDataSelection( )
It seems like the color hard coding in the "additional" properties of the chart are not tied to the value, but are determined by sort order. Any help is greatly appreciatedHi,
There is one Possibility bu not By chart .
It will look like chart but will use Text box .
Lets say you have 5 Divisions & 3 Key figures .
Then You need 5 * 3 = 15 Text box .
Arrange them in 5 columns and 3 rows type of view .
now .
set fix width for all .
set the height & position by coding
You need to set this type of code for filter selection also . -
How do I select a range of values in MySQL using a drop down menu
Hi,
I have a database of picture frames that have a value of
frame width. I want to be able to select a range of values (i.e.
.50" to 1") instead of each and every value (i.e. .50", .56", .76",
etc.). I have a drop down menu (mnuWidth) with 5 ranges (see
attached code).
Each selection has a value from 1 to 5 indicating the range I
want to search. In my results page I have let DW set up a recordset
(see attached code)
Can anyone tell me how to get this to choose a range instead
of just the value entered by my menu?
Thanks in advance.
TomI have been growing fond of lookup tables. Your lookup table would have your numbers in one column and the values you want returned in the next.
Lookup table
item
Name
1
a
2
b
3
c
4
d
5
e
6
f
7
g
8
h
9
i
Input table
input
Name
1
a
B2 and copied down:
LOOKUP(A2,lookup::$A$2:$A$11,lookup::$B$2:$B$11)
Caution: Lookup will return the closest value so it it looks for "10" in this example it will return "i"
If you don't want to see the error messages from blank inputs, wrap Lookup in IFERROR.
hope this helps
q -
How to group together same field values in a internal table.
Hi Gurus,
Case:1
Using AUFNR, i am retrieving data from RESB table.
Fields (RSPOS, ALPGR, ALPRF,KZAUS, MATNR).
If RESB-ALPGR (Alternate material group) is not initial, sort those values with ALPFR (Priority) after that group together same ALPGR values.
1) Top most priority (ALPRF) value MATNR populate to IDOC field.
2). Next top priority (ALPRF) value MATNR populate to IDOC field.
Case2:
using AUFNR, check RESB-KZAUS if it has a value '1'.
then, check to see if there are RESB-RSPOS that has the same (repeated RSPOS values) Ex: RSPOS value 0002,0002.
if yes, place the first RSPOS with KZAUS = 1. MATNR move to IDOC next RSPOS-MATNR value move to IDOC field.
Points will be awarded for useful answers.
Thanks in Advance.
Sashi.Hi,
Check this Example..
DATA:BEGIN OF ITAB OCCURS 0,
NAME(15) TYPE C,
END OF ITAB.
ITAB-NAME = 'peter'.
APPEND ITAB.
CLEAR ITAB.
ITAB-NAME = 'john'.
APPEND ITAB.
CLEAR ITAB.
ITAB-NAME = 'abrahm'.
APPEND ITAB.
CLEAR ITAB.
ITAB-NAME = 'daneyal'.
APPEND ITAB.
CLEAR ITAB.
LOOP AT ITAB.
WRITE:/ ITAB-NAME.
ENDLOOP.
Reward Points if found helpfull..
Cheers,
Chandra Sekhar. -
Can we input range of values in the Function Module CONVERSION_EXIT_MATN1_I
Hi all,
Can we in put range of values in the FM 'CONVERSION_EXIT_MATN1_INPUT'
Like If I am inputting s_matnr which takes range of material number based on selection screen input.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
INPUT = s_matnr
IMPORTING
OUTPUT = s_matnr
EXCEPTIONS
LENGTH_ERROR = 1
OTHERS = 2.
Can this work?
Thanks,
Debrup.hi do like this...
loop at r_matnr .
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
INPUT = r_matnr
IMPORTING
OUTPUT = v_matnr
EXCEPTIONS
LENGTH_ERROR = 1
OTHERS = 2.
itab-matnr = v_matnr .
append itab .
endloop . -
Financial Reporting Line Chart - disable #missing or #zero values
I need some help regarding the line chart in financial reporting. I want to create a line chart for actual and forecast-values. The underlying Grid contains following values:
actual-jan = 100
actual-feb = 121
actual-march = 119
actual-april to actual-dec = #missing
forecast-jan = 100
forecast-feb = 121
forecast-march = 119
forecast-april to forecast-dec = 125
In the line chart I get two lines, one for actual and one for forecast. Now my Problem is that the actual line has to stop with the march-value but it moves forward till december on the zero level.
Has anyone an idea how to get the line stopped at march?
kind regards
kaiSupressing or replacing zeroes does not help, the chart still drops to zero for future periods.
I created an extra column in my grid. In this column i used a formula that says if column a (current year) is greater than zero, show column a numbers, if not, show the number from the row above. I have separate reports for debits and credits, if you are OK with showing negative numbers, just adjust the formula. What my new column does is forecasts a straight line for all future periods for the current year. It is not the exact preferred result, but it keeps the scale appropriate and with a little education almost every executive has accepted it. -
Check a range of values in the pai section of a dynpro
Hi,
I have a week timetable, and for each day the user has to introduce a range of hours. I need to control that the hours the user introduces is in a correct format (hh:mm).
I've seen that it's possible to set the valid range of values of an element using a field section on the dynpro's PAI (Input checks in the flow logic). Something like this:
chain
field: field1, field2, ...
values between 00:00 to 23:59
endchain
But I don't know how can I use this to set a range of values in the time format.
Is it possible?
thanks in advancesee you can create a module like the coding done inside of the form validate_time this.you can run this code to see if it solves your problem.
Report ZANID_TEST2 Message-ID ZM.
parameters: p_time(5).
start-of-selection.
perform validate_time.
*& Form validate_time
form validate_time.
data: d_hours(2),
d_minutes(2).
data: hours type i,
minutes type i.
split p_time at ':' into d_hours d_minutes.
hours = d_hours.
minutes = d_minutes.
if hours > 24 or hours < 0.
message e307 with 'Invalid Hour'.
endif.
if minutes > 60 or minutes < 0.
message e307 with 'Invalid Minutes'.
endif.
endform. " validate_time -
Data fetch for range of value inside an assistance class
I want to create an assistance class where I can fetch data for the range of values selected ( basically when I select a range of sales order ).
I was only only successfully in creating parameters, passing single values.
Regards,
Krishna.Hi Krishna,
Logic to fetch the data of range ( implement in the method )
data : lv_matnr TYPE string VALUE 'MATNR',
lr_matnr TYPE REF TO data.
FIELD-SYMBOLS : <lr_matnr> TYPE ANY TABLE.
************ Method to call range of data ************************
CALL METHOD wd_this->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD
EXPORTING
I_ID = lv_matnr
RECEIVING
RT_RANGE_TABLE = lr_matnr.
ASSIGN lr_matnr->* to <lr_matnr>.
*************** call the method of the assistance class
wd_assist->GET_DATA( EXPORTING IR_MATNR = <lr_matnr> ).
****************** parameters of the method in the assistance class ********************
Hope this helps you
Thanks & Regards,
Sankar Gelivi -
Customer Account Group Number Range
Hi Guru's,
The Customer Account Group Number Range has currently taking 10 digits. But my client wants to be 12 digits.
Could you please guide me, to do the necessary setting for the same.
Kindly suggest.
thanking you,
regards,
SreeniDear Sreeni,
You can't change standard customer no range flied width.
You can create a new ZTABLE with 12digits.
regards
natraj -
Coloring charts depending on its input values
Hi all,
I need to create bar chart where colors of individual values will be changing depending on values.
For example query like this:
select null, ename, sal
from emp;
should display bar in red color when employee's salary is less than 2000,
and if it is higher than 2000, it should be displayed in green color.
Could anyone help me with this?
thanks for all advices.Finally I've resolved my problem.
For those, who had to solve similar issue.....I have one example
It's quite easy.
Create stacked_bar and for the first series enter this query:
select null, ename,
case
when sal < 2000 then 0
else sal
end "bonus"
from emp
after that, create another series with "inverse" query and of course select different color:
select null, ename,
case
when sal > 2000 then 0
else sal
end "bonus"
from emp
have fun :o)
Message was edited by:
siboch -
Error "There is no material group assigned to this value.Message BBP_ATTR01
Hi Experts,
We are in SRM 7.0
When assigning a new product category to a Purchasing Group. In the course of the assignment of the product category , the following error popped up: "There is no material group assigned to this value. Message number: BBP_ATTR010.Also,material group is there in R/3 & we have executed the necessary maintenace in V_BBP_DET_ACCT.
Any pointer will be highly appreciated,
Regards,
RupeshHi
Did you bring the new material group into SRM or not?
can you see new product category in comm_category table?
Muthu -
Return a Range of Value from Dashboard Prompt
From example, 'Day' column has values from 1 to 365 and I set it as a dashboard prompt. If I want to select a range of value from 'Day', I can use 'is between' operator. Then I can select a range of day value from 1 to 365.
My additional requirement is to return a fixed range of value. For example, the maximum range is 31 days. That means if I select day 1, the result should display 1-31. Also I should be allowed to select a range fewer than 31 days. In short, I need to return result from minimum 1 day to maximum 31 days. Is it possible for dashboard prompt? or there are other solutions?Let's see. To answer your first question, yes, you will end up having two prompts that hold values 1-31. The user will select one value from the first prompt, say 2, and a value from the second prompt, say 31. Since both of these prompt values are stored in presentation variables, you can use them in the filter on the "day column" in your report (i.e., 'Day' greater than or equal to pvStartDay and less than or equal to pvEndDay). This will give you the range on your report.
The reason for the CASE WHEN 1=0 is because you are using the Day column twice in your prompt. OBI only allows you to use a column once in your report. It is also to protect the column from being affected by the prompts.
Check this link for details:
http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/
Now, based on your second post, it appears your conditions are different. You are selecting actual dates, not a number from 1-31.
TomChan wrote:
Maybe I can describe my case in a simple way. I have a startDate prompt that can select all date values. If I select a date value from startDate prompt, says '20090101'(in yyyymmdd format), the endDate prompt should display maximum 31 values(i.e. 20090101 - 20090131) basing on the selected values of startDate prompt. Then I further select a value in the endDate prompt to filter the report. Is it possible?I am a bit confused. It seems that you want the first prompt to display the first day of the 12 months of the year and once selected, the second prompt would be constrained to show the days of that particular month from which the user would select the "end date"? But then you say "basing [sic] on the selected values of starDate prompt" -- you have "values" as plural. Does this mean the user can select multiple values in the first prompt?
Maybe you are looking for
-
My daughter forgot her passcode. Her iPod Touch 4gen is disabled. I've tried everything I've read online. I get to the "Restore" part on iTunes and then I get the message, "The iPod Software update server could not be contacted. Make sure your ne
-
JPanel Multipe Images are cutoff (layout problem I think)
I am adding images (custom JPanel: Entity class) to a JPanel but the images are getting cut off. I was originally trying BorderLayout but that only worked for one image and adding others added image cut-off the first or completely removed the origina
-
JHS 10.1.3.1.26 - Using create mode as Default page
Hi , I want to use create mode as default (while entering some page , user can insert new data immediately), any suggestions ? At present , I use javascript to call create button while page has been load. I think there must be some better way to do t
-
Can you add batch video transition in adobe premiere cs5.5?
can you add batch video transition in adobe premiere cs5.5? i want to make a slide show with my pictures and i dont want to add fade in/out 400 times so is there any batch transition or one click fade in/out or at least something like that?
-
Dudes, Just installed Tiger on my iBook G3 500mhz. All went fine. Wifi working fine. The I performed Software Update and installed 10.4.11 - and now my wifi is completely broken. It doesn't even recognise the 10-15 other networks in my locality. Have