I have create 2 calculated fields.
Example:
will have remaining amount (100%)
will have spend amount (60%)
both of these fields are calculated with different formulas.
Now I want to use these calculated fields in pie chart where it should show spend amount and remaining amount in pie chart.
Is there any way where I can use calculated fields in pie chart.
Thanks for help.
If the 2 calculated fields are both Measures, you can drag Measure Values to the Size or Angle card and Measure Names to the Color card for your Pie chart.
You'll need to filter the Measure Names to the 2 calculated fields only.
Related
I am trying to display a pie chart on Oracle Apex as a percentage of each response of why a deal was rejected etc. The value of each chunk shows as equal chunks until you hover over the piece which shows it's value coming back in thousands rather than a percentage of 100. I know on the attributes setting of the pie chart you can put it as a percentage and on the format scaling the options are: Thousand, Million, Billion, Trillion and quadrillion. The SQL code I have for the pie chart is as follows
SELECT * FROM DEALS_RETURNED;
Deals_returned is the table name but I want it to count the column 'Reason' to show on the pie how many of each reason has been given for each rejected etc.
Tried to change the code to have
SELECT COUNT(Reason)
FROM DEALS_RETURNED
I am trying to create multi-line subplots such that each subplot represents a rating factor on which firms are rated, and each line represents a firm's change in rating over time. Note that I don't have the date field. I have a string field that says which quarter of the year the Mean of ratings belong to.
I'm new to tableau and I created something like this:
I want to create multiple subplots: one subplot for each of the 8 rating features in the above diagram, and the subplot has multiple lines representing the variation over time for each company. I have 10 companies.
Please guide me on how to achieve this?
A rough sketch of how I Imagine the plot to look like is below:
This will teach you how to make a panel chart in Tableau: https://tarsolutions.co.uk/blog/build-a-dynamic-panel-chart-in-tableau/
It shouldn't to too complex for what you're attempting (fingers crossed!).
Building the panel chart is a little tricky in Tableau. Not terribly hard once you understand table calcs. I suggest starting simpler by moving Measure Names from the Rows shelf to the Pages shelf, then creating the line charts you want - 1 per page. Then learn about table calc partitions and addressing, including “At the Level” to have the info needed to define the panels
To make a colored line chart,
You need one field on columns that you set to display as continuous, making it green. If it is a date field, right click on the field and choose from the second set of groups, like month or quarter.
You need a continuous field on the Rows shelf, use Measure Values in your case
Use a discrete field on color to determine the number of lines, say Shortname
Set the Mark Type to either Automatic or line
I am using crystal reports with vb.net. I have a datatable with columns (total,rejected,accepted).The data changes according to a query. by the way the table always has one record only.
total rejected accepted
60220.196 38107.94 22112.256
I want to put a pie chart in the report. the size of the chart is the total. the slices are (rejected, accepted).
in chart expert, I didn't know how to set the data to show the desired chart.
enter image description here
Change On change of to For all records, then choos your value fields:
I want to create the following:
I want to have a database of more than 100 X-Axis categories (e.g. 100+, these are products)
I want the HighChart to display product X in the centre of the chart with 2 closes X-axis values above and 2 lowest x-axis values below.(so total 5 x-axis values)
If I update the database, I want the charts to automatically adjust and looking for the closest X-axis values below and up.
Can anyone help me how I can realise this?
I have a query that gives this output (this is a result from a udf, the denseRank is created as an filter for the pie charts, only this denseRanks stays as 1,2,3.. as the number of scenarios can be changing, so if I had 3 scenarios, there would be 6 lines with denseRank 3 at the bottom. for each scenario, there are always these 2 lines, capex and opex with cost):
Now I'm creating a set of pie charts that gives the percentage of capex and opex costs for each scenario.
So for example in the first pie chart, I've set the filter in category group properties as denseRank=1 as this is for my first scenario, see picture below. Similarly, I've set denseRank=2 in my second pie chart as it is for my second scenario.
And in the series label properties, I have the label expression as this (dataset2 is where the query that creates the above table):
I have a bunch of other settings like, show label as percentage with no decimal, piestartangle=270 etc.. Now I run my report and it is giving me this: the problem is the portion looks right, but the label is showing the the percentage based on the overall cost, but it really should be the percentage within each scenario, so for example 21% and 79% for scenario 1.
Is there any setting/function that I need to add? any way that I can get the right percentages without adding additional query/dataset to do the pie charts individually?
Sorry for the long post, really appreciate if you can help!!
got it figure out...
label expression to use sum iif denseRank=1, also use cdbl to convert non-integer to .00