Power BI - Line Chart - Trend Comparison - charts

I have a line chart that tracks the fill rate performance of more than 50 suppliers (Year/Month).My dashboard includes a filter for the suppliers.I would like to compare the performance of a given supplier against the collective performance of every one else.
Basically, I created this measure to calculate the fill rate:
3DAYS_FILLRATE = SUM(TBL_METRICS[SHIP3DAYS])/sum(TBL_METRICS[TOTALORDERS])
How can I create another measure that retains the performance trend of all the suppliers when the filter is applied?
Image of graph in Power BI is below:

In the case that you are trying to filter a second visualisation containing the same measure and you are filtering using a slicer or other visualisation, you can click onto the visualisation you are filtering with, click on the 'Format' tab and click on 'Edit Interactions'. Then select none on the visualisation you wish to not filter. See Microsoft Documentation: https://learn.microsoft.com/en-us/power-bi/service-reports-visual-interactions
Otherwise, you may be able to try creating the following second measure which could satisfy your needs:
Measure 2 = Calculate(SUM(TBL_METRICS[SHIP3DAYS])/sum(TBL_METRICS[TOTALORDERS]), all(tbl_metrics))

Related

Power BI dynamic Filters on group by

Im fairly sure what im attempting is not the ideal way to do things due to my lack of knowledge of power BI but here goes:
I have two tables in the form of:
One has the actual power against wind and the other is a reference
I created calculated columns that add a corresponding binned speed to each row (so 1-2, 2-3, 3-4 etc)
I have filters and slicers applied on the page / visual that will keep changing.
What i want is to create a pivot or a grouped table that is changed dynamically based on my filters.
The reason i want this is currently the table ive got has totals that are averaged (because individual row is averaged) but i want a sum of an average by category. If i can have this as a calculated table instead of a visual (picture below) i would likely be able to aggregate this again to get what i want
so on the above table i want to totals to be sum of individual rows. I also want to be able to use these totals to carry out other calculations (simple stuff like total divided by fixed number etc)

How do I sort this scatter plot?

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.)

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.

Want to visualize a cumulative value of a quotient of two variables from the beginning in Tableau

I'm looking forward to create a parameter or calculation in Tableau that allows me to get a kind of running total of a quotient of two variables.
Let's explain this with a simple example using baseball jargon:
Let's consider that a batter starts a season registering both At Bats (AB) and Hits (H). The Batting Average (BA) is defined as H/AB. All these values are available in my data set on a game basis (each row of the dataset is a game).
I need to calculate the cumulative Batting Average of the batter since it started to play.
The following table/image shows how this can be done in Excel adding some other columns, but I want to create that directly in Tableau using a calculation.
Example data in Excel
Both averages (by game and cumulative) in a Excel graph
You can use RUNNING_SUM on At bats and Hits. And then divide [hits] / [at bats].
See attached: https://dl.dropboxusercontent.com/u/60455118/160716%20stack%20question.twbx

Tableau: How to divide two table calculations?

I have these calculated measures which I use within a tool tip as table calculations
[alert_count_by_action] = total([distinct_alerts]) compute using day
[alert_count_all] = total(distinct alerts]) compute using table across
When I mouse over an action name colored widget type I can see that the [alert_count_by_action] and [alert_count_all] are producing the correct values. What I would like to do is to compute a percent by dividing [alert_count_by_action] / [alert_count_all] which I will call [alerts_by_action_percent_overall]. This is not working at all despite trying every combination available on the table calculation options within the Marks card.
What am I doing wrong?
Without the attached workbook, I can only suggest to check the partitioning of your % calculation. Because both components of the fraction are themselves table calculations, they can be partitioned separately (i.e. "compute using" options).
There should be a combo-box in the 'Edit table calculation' dialog that selects which component is being configured.
Maybe you have configured one part, but not other?