Azure Metrics Graphs showing different results depending on style - azure

I am building some SQL dashboards in Azure using the standard metrics. Specifically, I'm charting DTU Usage against DTU Limits. I'm plotting max values for each one.
With the "Line Chart" style, I get this:
Line Chart
Which suggests that I'm using, at most, about half mt DTU limit.
However, if I switch the style to "Bar Chart" I get this: Bar Chart
Which suggests that I'm going over my DTU limit almost every day.
So now, I'm wondering which interpretation is correct? My gut tells me that the line chart is right and I'm just seeing a "stacking bar chart" that is summing both values rather than the more traditional bar chart that I'm accustomed to. I can't find any resources in the Azure documentation that speak to this. Any thoughts?
Thanks!

When you get the "Bar chart", as you said, the value of Y-axis range is the sum of the two metrics or a little higher, these metrics share one Y-axis .
It looks like that you're going over your DTU limit almost every day, because Azure mix the two metrics value in one bar.
For example in "Bar chart", when we want to see the DTU limit max, we should move the mouse to the "DTU limit(max)" in the lower left corner:
"DTU used(max)":
Hope this helps.

Over the last few years I have seen many complaints about the DTU graph as this one. The graph is sometimes inconsistent as shown here.
Please run the following query to verify resource consumption over the last 7 days. You may find the result of the query more accurate than the DTU graph.
SELECT *
FROM sys.dm_db_resource_stats
WHERE database_name = 'AdventureWorksLT' AND
start_time > DATEADD(day, -7, GETDATE())
ORDER BY start_time DESC;

Related

Binomial Options Pricing Calculation in PowerQuery

Im trying to build an excel sheet that calculates synthetic options prices and greeks for time series data to model intraday options pricing, input is simply intraday price data, say Tick level to 5 minute interval. I found this https://www.thebiccountant.com/2021/12/28/black-scholes-option-pricing-with-power-query-in-power-bi/ which provides for powerBI and Black Scholes but possibly not very accurately. I prefer the Binomial method (I have used this excellent tutuorial to build a manual version for a large number of strikes but it takes a long time to calculate and is very very complex and also inaccurate due to not being able to calculate many steps before topping excel out: https://www.macroption.com/binomial-option-pricing-excel/).
Does anyone have any idea if this is possible to create an entire column in Power Query that will calculate bionomially derived options pricing using >100 even up to 1000 steps? The reason is intraday pricing using high resolution data 5min, 1min, Seconds and Tick I think needs a large number of steps to properly converge. This is just about doing a good enough model that can be used for visualising the progress of a trade on a given day.
Any pointers on how this could be done and calculated using M Language would be much appreciated and useful!

Power BI: Custom Min/Max values into Visual (Line chart)

I am trying to do some reporting stuff (engineering field), and I am stuck on some "simple" thing, how to insert/add custom Min/Max values so that I can have on the certain visual (like on the picture) border values, min and max that I have defined!
I am receiving set of data, where Min/Max aren't included, and I have to calculate them (those border values are defined by us). I tried to do add column but when I go to "analytics" and try to put there Min/Max, I am getting doubled lines and its quite messy (on pic below)... Is there any easier and better way to calculate / add that? From additional table or else??
Min would be 60 °C
Max would be 100 °C , it is just temperature range and its limitation.
So on the pic below, I tried Add Column into the Data and also Measure directly (60 and 100 degrees) and got this below....the problem is, you cant edit these lines... the thing is I wanted them from Analytics part but there I cant see them because they re not "existing".
So, after little bit of playing around and some suggests of PBI pros, I will just write two ways of getting the same results, with minor change.
1) You can insert measure/column into your data set (in my case that was Min = 60 and Max = 100), simple as a day. Then on Format tab > Customize series where you can adjsut your Line: width, type, style...
2) Without any calculation: On Analytics tab > add 2x Constant Lines, put values that you want and thats it.
The only difference here is Data labeling, on 2nd option you can see your limiter value on one of the sides...and using 1st option, your limiter value is through whole line, and you cant remove it (for a whole line). But depends what and how you wanna see your data.
Maybe there are some other ways but this one was fine for me, didnt explore fully PBI yet.

Why doesn't Grafana show me the correct count?

I'm trying to do something in Grafana/Graphite which should be really easy, but has me baffled. I'd like to get the total by which a count has increased during the period I select in the top right corner of the Grafana UI.
Users of our site can import content from various sources, and every time they do an import, we increment a StatsD count. We include the source type in the StatsD path, so we can break out the numbers for each type of import in Grafana, as in this example.
Unfortunately, in this view of the graph Grafana is giving us crazy numbers. When we check them against another stats service we also use we see very different data. For example, the import Grafana shows as 96.9 in this screenshot, in our other system has a value of 4,466 over the last week. We're totally sure our other system is right and Grafana's number is wrong.
Can anyone suggest what we're doing wrong? We want a chart that'll give us the breakdown of number of imports of each type during the selected date range. Over 7 days, we'd expect the big green item to be 4,466, not 96.6. On a date range like 1 day, we'd expect it to be something like
629, because the count gets incremented by about that much per day.

Bar Chart of student performance - Tableau

I have this dashboard. In sheet two , the bar chart is just counting the number of marks
in each range specified in the x-axis. What I actually want is a bar chart according to the same range, but it should count the average of marks of each student. In sheet 3, the bar chart looks similar to what I expect, but if you take a look, it's just adding each average of student one above the another.
So, how can I make a char bart with frequency of students average of marks. The ranges should be: [0 , 5>,[5,10>, [10,15>, [15,20].
One solution is to create a custom SQL data connection to first calculated the avg NOTA for each student as below:
select NOMBRES, avg(NOTA) as avg_nota from YOUR_TABLE group by NOMBRES
Then you can create a histogram for avg_nota, either with Show Me or manually.
Here is a link to an example based on your original
The SQL above weighs each score equally, which is fine if each course has exactly the same number of grades. But if the number of records varies between courses, you should adjust the approach to make sure each course is weighted the same (e.g. so that a course with 10 small tests does not get weighted twice as much as a course with 5 larger tests). The solution in that case, might involve repeating the above step in a nested subquery or view grouping by both NOMBRE and CURSO. Still this simple approach should give you the basic idea.
The solution above works but I think there ought to be a way to get the same effect using table calculations without resorting to custom SQL

How to create an Excel chart showing data over 24hrs

I have a data set that includes only two columns - errtype (A,B,C) and errtime (hh,mm,ss). This data is being collected over many days. I want to create a graph that will make it easy to discern when, with a 24hr day, most errors are occurring and what type of error they are. I don't want to aggregate the data points into hourly groups if it can be avoided. It's been easy enough to create a bar chart that shows the errors with time of day across the x axis. The bar heights themselves almost never exceed 1 on the x axis unless more than one errtype occurs at the exact same second. For this reason I don't think a scatterplot would look all that good even if I could figure out how to do that type of grpah. With the bar chart style, what I can't figure out is how to get the y scale to be 24hrs in Excel. There doesn't seem to be an option for it in the bar chart axis properties, even when I've set the data type as "time".
When i want to accomplish a timeline it has involved the creation of an artificial table showing the data with the expected grain (for example 1440 rows for all the minutes in one day) and then use a vertical lookup to get the corresponding value to that time.
After being bored of doing this manually for different types of grains, you can even get into adjusting the size of the table automatically which is actually kind a cool
I do not have an example with me right now, but if this question is still not answered tomorrow i will give you a complete dummy example of how to do it.

Resources