iReport: Calculation of percentage by percentage tool + Graph? - jasper-reports

I am trying to generate report using iReports on relational database.
I have to calculate percentage of certain data therefore I used Percentage tool in the Palette. That works perfectly fine for data that is coming in tabular form.
But now I have to generate chart for the same data as well. But that percentage is not getting reflected in graph now.
Percentage tool is generating following expression
new Double( $F{Totalvalue}.doubleValue() / $V{Totalvalue_SUM}.doubleValue() )
This expression is working fine for table format data but not for graph, I cann't understand why

try change graph property "Evaluation Time" to value "Report'.. By default it is "Now".
That's why at the graph rendering time all the values are recalculated again.

Related

Tableau Percent Difference Between Week

I am trying to display a graph that shows the increase or decrease in percentage of calls from each country over time (sample data and desired output below). This is intended to answer the question, "Has the proportion of calls within the USA compared to the others gone up or down in the past week?", not to be confused with answering the question if USA has just seen more calls.
In the example below, I am looking for a bar chart that shows increases/decreases for all of the countries (x-axis = country, y-axis = percent difference)
I understand how to do this based on a simple change in count, but am struggling to look at this as percent of the total.
Sounds like you want to do a Table Calc on a table calc. No problems to do this. I suggest creating the first calculated field and saving it as a new calculation. Then use that field within your final table calculation.
If you're creating the table calculation using the Quick Table Calculation, double click in the pill to see the underlying formula - you can copy this out and paste into a new calculated field.
You are also able to set the "Compute Using" separately using this method, which may be useful in this example.

Tableau: How to show two measures from different data sources in the same chart (without blending)

Currently I have a chart that displays monthly GA visitors. This data comes from a GA table in the DB (Table 1)
I have a separate data source for purchases (Table 2). I have a chart that shows # of monthly purchases, but I'd like to combine these into one chart so I can show a monthly conversion rate.
Tableau keeps prompting me to blend data and I don't want to do that (I don't think). Tableau seems really unintuitive at times.
Please see the screenshot below. The numbers in red are what I'm looking for. They need to pulled on the same dates as the GA data. I can derive the conversion % from there.
Thank you! Tried a bunch of stuff but getting nowhere.

How do I save forecasted values to use in calculations in Tableau?

I have a report that uses a couple years of historical data and uses the Tableau forecasting to show expected values for the next three months. I would like to be able to save these values for a few reasons.
I need to do calculations on the forecasted values. Multiple different people will be using this forecast and will need different calculations. Some will need to calculate 70% of the forecasted value, and some will need to calculate different percentages. I'd like to have a parameter for them to enter the percent and be able to create a calculation using the parameter and the forecasted value.
I would like to be able to save forecasted values to later show the difference between what was forecasted and what actually happened. I understand you can export your data from your forecast and import that as another data source to show actuals vs forecast, but I need to do it all automatically with no manual intervention.
Is this possible? I haven't found any way to save the values or do calculations on the values that are forecasted. I am using Tableau 10.5
Tableau will never save data. Probably easiest to create the forecast values in the datasource and then report. It's very simple to have "actual" values and "forecast" values so you can compare

splunk - create chart with values function

Background: Soon after my performance test, the response time details of the business transactions will be fed into splunk, from where I need to generate trend graph for couple of transactions for certain period of time.
Now I am able to group the response time data for these transactions but in visualization, not able to generate the chart.
Refer:SS01.jpg for more details.
query used: index=xyz source=abc (Period!=Period) Transaction_Name=Search OR Address_Book OR Policy | chart values(Average) as Average by Transaction_Name
I want the chart to appear in either format A or B as it appears on SS02.jpg.
Please help me on this.
Thanks.
You have very low values (i.e. 0.046, 0.099, etc) in the query output and very high value in the chart Y axis (100), in order to get the desired picture just reduce the maximum value for the vertical axis like:
To make the changes permanent you can amend charting.secondaryAxis.maximumNumber parameter value like it described in Controlling chart (y axis) range
Personally I prefer BM.Sense output for performance test results analysis.

Adding average lines to Tableau bar chart

I have a Tableau bar chart which plots a number of measures for one particular row at a time in my data set (using a Quick Filter).
I was wondering if there was an easy way to add a reference line for each measure's average value across the entire data set.
You may have to bring in more data and use an alternative filtering method to 'quick filter' (like using a conditional expression in a calculated field). Such as:
if (condition of quickfilter) then
data
else
null
end
this way you can view only limited rows of data in your viz, while also bringing in the rest of the data for the average calculation.