I did try to create Ag-Grid with aggregation for accounting purposes. And I have strange requirements.
I have a column with positive numbers, next column contain (credit) and (debit) which must work like sign.
So how make deduction credit from sum debit for nodes on same level? How I can make it if (credit) and (debit) located in next column ?
Explaining on image below.
Thanks,
Example:
[enter image description here][1]
[1]: https://i.stack.imgur.com/5h1Im.png
Related
I have a dataset on demography of the people and their claim amount. In the attached image, i am trying to calculate percentage difference between old and new claim for a particular car type (here, minivan) and two different 'car use' type. You can see the formula i have used to calculate in the screen shot but this formula is not giving correct answer (seems like its calculating for whole dataset).
How should i write the formula to get percentage difference between old and new claims for particular car type and car use? Tableau Screen Shot
You haven't opened the expression editor, so we're unable to see the calculation you are using here, though looking at your layout, the expression you need is:
(Avg(Clm Amt) - Avg(Oldclaim)) / Avg(Oldclaim)
Steve
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.
I would like to sort this scatter plot, which is summarized with a Band that includes Minimum, Average, and Maximum.
I would like to sort it in 2 ways:
by Average
by Widest Range (ie difference between Minimum and Maximum values)
Tableau Public workbook
If you can't view this or I'm not allowed to post external resources on stackoverflow, then perhaps you can show me on this screenshot what I would click to get started on the following sort
Also, bonus question, is there a way to create a control for the user to toggle between the 2 sort methods in the same chart? Or do I have to duplicate the chart with a different sort type for each?
One note is that I only have Tableau Public version since I'm evaluating the product. Until I get a paid version, I can't open a workbook file unless you publish it to Tableau Public cloud. But rather than give me the workbook answer, I would just appreciate it if you gave me instructions to do this as this is more of a learning exercise.
Thanks!
Somewhat unfortunately, you'll have to replicate the min,avg,max by creating 3 calculated fields. Tableau cannot operate on the values placed on the view via reference lines.
These calculations might look something like these:
{Fixed [Cwe]: Min([Cvss Score])}
~
{Fixed [Cwe]: Avg([Cvss Score])}
~
{Fixed [Cwe]: Max([Cvss Score])}
In general, from there, you should pretty easily be able to apply them to the view and sort. Average will be easy. The difference between Min and Max will just need a subtracting calculated field to sort by. Once they're on the view, I'd put them as a dimension (column) to verify that the numbers look correct.
Take note that LOD calculations take place before filtering, so you'll want to put the Cvss filter you have there 'on context' by right clicking it and clicking 'add to context'
Here is how I would complete the sorts:
Starting with all the above calculations on 'Rows' and ensuring that they are 'Dimensions' (Blue).
After right clicking "Sort..." on [Sub-Category] on 'Rows'. Select which field to sort by.
From there, the calculated fields can be taken off the rows column. (They were only there in the first place to ensure that you could check that the sorts took place. They don't actually need to have been there in the first place.)
I have created 9 calculated fields that return the desired results. Now I want to create a single dimension (or measure if more appropriate) that combines the fields into one by appending the data, not creating a combined string field. I know I can do this in Excel very easily, but am at a loss in Tableau. Please see screen shots for more information.
Pic 1- This is the code for each calculated field (only the number of minutes are changed). > 75 also has an if statement attached.
Pic 2 - This is a combined field of all the data I want in one column. This is validating that my calculation fields are returning the desired result.
The end goal is to create a single bar chart based on the combined data. Thanks for any assistance.
I may be wrong, but get the feeling what you want to achieve can be done by dragging the "Measure Values" into your visualization, and then the "Measure Names" into color, or whatever else. You can filter on "Measure Names" to include only those measures you created, and they will be represented as one pill, but will include all of the values and retain them as individual measures.
I have two dimensions. Revenue and Transaction.
Now, I create a new calculation called "AOV" by creating: Revenue /Transaction
However, there is no data for AOV.
when i count(AOV) it shows 0.
How to create the calculation and shows the actual AOV values? Thanks a lot
Your Calculation field is right.
You need to change the format of AOV to percentage
see below image