Is it possible to have calculated columns in metrics resource - azure-monitor-workbooks

I'm trying to divide one column from metrics by another to find percentage of used Azure files but can not figure out if it's possible to do. Example is below where I want to have a new calculated column which divides column called File capacity by column called File Share Capacity.

In the metrics directly no, as metrics itself doesn't have that (yet?)
In workbooks, yes, you can do this, using a "merge" data source, which allows addition of custom calculated columns. (this is something we'd like to support directly on any metrics/query without using merge but hasn't worked its way up on to the todo list behind everything else)
configure your metrics step (make sure the metric step is set to "grid" visualization)
after your metrics step, add a new query step.
choose data source "merge"
click "add merge", and in the popup that appears choose "duplicate table" and choose the metric created in step 0
you should now see a grid of all of the fields in the table with their original name and what they'll be named after the merge
at this point, remove any columns you can remove any columns you don't need
and i'd suggest naming the rest of them nice easy names to use in steps later
click "add new item" in the toolbar
you'll get a new window for adding a new column and how to populate its rows
commonly this is used to if/then/else between values, but you'll just have one row here
in the row for conditions, click "edit" in the default row
a popup will appear, probably with a bunch of things disabled.
but one of the options there is "value from" and you can choose "expression"
after choosing "expression" you can type in the expression you want
for mine, i couldn't repro it on exactly your metrics, but i did this:
and got a grid (which i then set all the standard format options on to make it similar to the metrics grid (in group by settings group by sub, name by name, expand top level. in column settings, set the group by column renderer to resource, hide sub, name columns, set the error rate column to percent and 5 decimals) and i get this:
you can then go to the original metrics step in your workbook, and use conditional visibility settings to hide the metrics step.

Related

Azure workbook filtering based on a selection/click in a chart

I would like to filter the data and show the raw/aggregated data in a table/grid when a selection is being done in a Bar Chart in Azure Workbook visualizations.
I have a bar graph as below. When I select on the "purple" line denoting Avg CPU to be very high, I would want a grid/table showing the CPU aggregated on x based on the query. How can this be achieved in Azure workbooks.
Yes, it can be done. see the azure docs or the github docs for full details but in general:
in the advanced settings for the visualization, choose the "when items are selected export parameters" option, and fill that out.
(note in both docs it calls out that in grids you can export any column in the grid, but in charts, you have different options for x, y, series, etc)
that will create a parameter with a value when something becomes selected
use that parameter downstream, in query text, or in conditional visibility to hide and show other steps

Surfacing key information in Azure DevOps - pivot options appear limited?

Currently trying to surface key information around the projects in our organisation. I want to show a breakdown of work items assigned, estimated time, and completed time per individual. I thought I could do this with the chart widget, and I can if I have 3 different pivots, but it seems very limited. I don't seem to be able to adjust the order of the column series (status) to what I want. I can adjust based on the values - e.g. estimates but then the next chart has that status in a completely different order because it's sorting on something different.
Is there another widget I should use, or is Azure DevOps not capable of handling this? Do I have to use Excel or PowerBI instead??
You can use “chart for work items” widget. Please select chart type as Pivot table. For example, here is my configuration of the "Chart for work items" widget:
You can see the Original Estimate assigned to each user in this widget:

Multiple Dependent drop down list in excel/vba

I am trying to do sector classification for GICS sector. GICS structure consists of 11 sectors, 24 industry groups, 69 industries and 158 sub-industries. the below link gives the sector classfication
https://en.wikipedia.org/wiki/Global_Industry_Classification_Standard
can i create a drop down list like the attached image using data validation and name range function ?
like this with a vba button to refresh
On the web there are many step-by-step guides to create interdependent validation drop-downs. This is one of them. Working your way through the instructions is serious work. To help you on your way I have created a starting point for you.
The picture shows a table named Industry_Groups. It has one column for each group, and in this column are listed all the industries in that group. Now you can create a drop-down with all the column captions which would enable you to select any of the industry groups. This drop-down would have the list specification
=INDIRECT("Industry_Groups[#Headers]")
A dependent drop-down would have the list specification given below.
=INDIRECT("Industry_Groups["&A10&"]")
As you see, it takes the referenced table column name from cell A10, which is occupied by the first drop-down. Therefore the list in the second drop-down will change depending upon the selection in the first.
Of course, whatever can be selected in the second drop-down is nothing but the name of another list in another table. Each of them would name a table like the one shown above - literally hundreds of them. They have to be created before you can start on the programming.
Talking of programming, it seems that you tried to create a VBA based system that would generate the lists on the fly. No doubt that is possible but it would require some serious programming for which your attempts do not show an aptitude. The advantage of the system I show you here is that you can create and implement it with your own resources. You know, it's the story of the sparrow in your hand and the pigeon on the roof.

Excel data grouping

As you can see on the left, there are several lines with the same purpose (here the name, the first name, and the study of several students).
In order to have something readable, is there a simple way to group in a single column all lines with the same title ?
For example, I have 5 lines beginning with "Prénom", can I group them in a single column with "Prénom" as header and the list of all the lines below ?
One of the tools put in place was to create a database of all the students then to ask the database to make comparisons before re-sorting the table. But is there a simpler way to do this using Excel's native tools ?
I also tried to do it with the PivotTables but it just creates columns named "Name 1" "Name 2" "Name 3" etc instead of grouping them under the same name.
Photo of the Excel page
Many thanks.
Select all table data.. then click the filter button at 'Projet' column, then choose sort. That shall do what you said.

How to visualize more attributes of a dimension in Pivot table in Excel 2016

I have a SSAS cube where one dimension is "User".
User has many attributes, say "Email", "Mobile Number", "Address" and (many) more.
I build a Pivot table in Excel 2016 where I can easily find which Users, for instance, placed orders in the current month.
Now, I want to visualize for each of these users several of the possible attributes: I just need to easily get the list of email and mobile numbers of the users that placed orders in the current month.
If I drag the required attributes in the Pivot table though, these are used to further split each row: under each User in the Pivot there will be a level with just one Mobile Phone and this will be further divided in one email and so on.
What I need is, instead, keeping the division of the Fact "Order" only by the dimension User, and for each User to just visualize some more fields.
What's the best way to achieve this?
The only way we can think of so far is to have an additional attribute with the concatenation (comma separated?) of all the needed information. But this is honestly horrible. The aim should be to have each of the additional attributes in its own excel cell.
I think you are looking for something like this ...
Pivot-Table options -> Display -> Classic PivotTable layout
For each field on your pivot table, Field Settings->Subtotals->None
From this raw data ...
And the options above, I generate this Pivot Table ...
I can't comment on Excel 2016, as I'm using XL 2013.
But in my pivot table, I can right-click on the default-displayed value for the dimension (I guess this would show the user Name for your User dimension - for me it's a Products dimension).[
Then select "Show Properties in Report", and select the one you want.
What it shows is what you get in the Tooltip popup when you hover over the cell. It doesn't seem to treat these extra values as extra dimension levels, with a Cartesian-product relation to the leaf-level you're looking at: it correctly just reads one value per leaf member.
Is there maybe some switch in your dimension design you need to flip to get Excel to do this? My dimension has these "properties" as dimension attributes, with AttributeHierarchyVisible=True, AttributeHierarchyEnabled=False.
I only have 2 of these defined (Current Product Code and ID). For some reason this Excel functionality also includes the immediate parent level of the leaf level in the hierarchy (Category) as a "property".

Resources