QlikView - adding a value to an average trendline - qlikview

I have a bar chart in QlikView and have added in an average line from Properties > Expressions > Trendlines > Average.
I want to display the value of this average, but not sure how...
Hope this is enough information, please let me know if not!

You can display the "equation" for the trendline by selecting "Average" and then checking the box to the right marked "Show Equation":
This then results in a small piece of text added to your chart as follows:

Related

Can you force a label on top of a bar chart in SQL Server Reporting Services?

I would like to ensure the labels of my bar chart are above the bars. Can you force a label on top of a bar chart in SQL Server Reporting Services? If so, how?
The issues are the colors are so dark, it's hard to read them if they are not above the bar in the chart. I could just change the colors, but I'd rather learn how to force the label location if possible.
I'd like all numbers to be above the bar, like over the blue bar below. I have over 100 different charts in my report, so the scale will vary greatly depending on the particular report.
Thank you!
In Visual Studio, design mode, ensure that the properties window is visible, then click on any of the labels on the chart.
At this point, the properties window should show the properties for Chart Series Label.
Find the 'Position' property, which probably is showing the value 'Auto', change this value to 'Top' and this should do the trick.
You have to first make sure the chart type is not stacked.
In my experience the "Position" property doesn't always work.
Sometimes you have to go to the properties of the series, then "Custom Attributes", then "Label Style" then select "Top".
What #niktrs said in the comments of the other answer about setting the AllowOutsidePlotArea property is also true.
Microsoft do not use the label Position property for some of the chart types.
They tell us what they use by default here - in your case "on bar charts labels are placed outside of the bars that represent data points" (they appear to mean "column charts")...but sometimes with a large value it's placed just inside, sometimes partially in-out (and if you try the "Outside" position it just fails to render!).
As #jayvee has mentioned the trick with Column charts is to select the value and change the SmartLabels AllowOutSidePlotArea to True (from Partial).
However if you have a Stacked Bar chart then labels are always in the centre of the particular value.
The hack to get labels on top is to add an extra Stacked Bar value with the Color set to "No Color" and move it to the top of the values (using the Chart Data designer arrows).
The trick is getting a good expression value to use - a constant ends up too big or too small at some point, so I found a percentage of the stacked values works best (remembering to change Nulls to Zeros)...25% to 30% usually works.
Then set the value Label to the value you want to display in the data label.
I just had this issue, I was able to fix it by making sure the chart series "Smart Labels" - "Disabled" property was set to "True"
This is what my properties pane looks like:

How to change the color of bar chart in Pentaho Report designer based on the value

I have a simple requirement wherein I would like to change the color of the bar chart in Pentaho report designer based on the value of y-axis. In case the number is negative, I would like to show it as a red bar, in case the value is positive, I would like to show this as a green bar.
I took a look at the following example but the color changes based on the values proximity to a goal of 1 million. I am pretty new to bean shell scripting and would really appreciate any inputs on the same: http://type-exit.org/adventures-with-open-source-bi/2011/05/dynamic-coloring-of-prd-charts/#downloads
Thank you,
Malavika

Edit Pop-ups on QlikView Chart

I have an expression Sum of Cycle Times in a bar chart. I want to display the equation used to calculate the value of the expression when I hover over the bar in the chart. Right now, the pop-up box displays the dimension value and the expression value. Can I edit what is displayed in the pop-up?
You can create a new expression with your expression formula in quotes and set it to 'Text as Pop-up'. This is a common practice in Qlikview charts as a means to get custom pop-up text. It's still not a perfect solution, but it will take care of your problem.

Reference textbox from chart expression in QlikView

Please advise (syntax) on how to reference a text object in QlikView to pick its value.
My object is called: TX1, it is a text box and it is defined like this:
=SUM( TOTAL Income)
Why do I need this?
I have a chart with Persons as a dimension, and the expression should calculate each person's income/total income.
The total income needs to be taken from that textbox with alternate state so it remains unaffected by the filter selections (or the dimension that forces total income to be seen as total income belonging to each person).
Thank you.
Any selections you make in your dashboard will have an effect on relational data shown within a text-box.
You can, however, store the initial value of your expression and keep it for later use.
Create a variable called vInitialSum or something, and set it upon opening the document. You'll then have the untouched (unfiltered) value of =SUM("Total Income") to use at your disposal.
Add the trigger in Settings > Document Properties > Triggers > OnOpen:
Just use this:
SUM({1}Income)
The "{1}" tells the formula to ignore any selections and calculate on the full data set. For more details, see "set analysis" and "set modifiers" in the help.

Reporting Services Pie Chart

The pie chart is driving me nuts...Excuse me if I sound ignorant but I have figured out the other RS charts with relative ease, and this is the first time I have had to use the Reporting Services pie chart.
I have a dataset:
Columns:
ChildId int
AssessmentType varchar
Score int
All I want is to have a pie chart that displays the percent of the whole for each assessment type. So if I had 10 records returned with the following:
2 "THIS" Assessment Types
5 "THAT" Assessment Types
3 "THEOTHER" Assessment Types
I would want the pie chart to show that the "THIS" Assessment peice of the pie is 20%, the "THAT" is 50%, "THEOTHER" as 30%, but I cannot figure out how to set it up. Can any one help me out on this, or refer me somewhere. I have been looking for some time and can't find any pages that have helped me with this control.
I figured this out...To show the percentage:
Right click on the chart and click on properties.
Go the the Data table, select your "[Value]" and click edit.
Go to the Point Labels tab and check "Show point labels".
In the format code enter P
Edit the expression and calculate your percentage. In my example I would use the code below.
=Count(Fields!ChildId.Value) / Count(Fields!Childid.Value, "MyDataset")
The problem I was having is that I was filtering the data set at the chart level with a filter expression. So when I was trying to calculate the percentage using the code below my numbers were getting thrown off. The filter is not applied the dataset count when retrieved like I was doing it.
Count(Fields!Childid.Value, "MyDataset")