IBM Apptio

IBM Apptio

A place for Apptio product users to learn, connect, share and grow together.

 View Only

Custom Azure Daily Report 

Tue August 21, 2018 11:48 AM

This guide walks you through building a custom Azure Daily Report. The resulting report will look similar to the image below:

 

Edit Report

The "Azure EA Detailed Bill Raw" table needs some modifications before we can build out the Azure Daily report.

 

Adding Formulas

Before you can build your Daily Report, you need to add new formulas to your "Azure EA Detailed Bill Raw" table. 

 

Column NameFormula
Application=If(Trim(Resource Group)="","UNKNOWN",Upper(Resource Group))

Business Unit

=Account Name
Cost Average=ExtendedCost/Day Last
Date Last Day=DateFormat(Epoch Last Day,"yyyy-MM-dd")
Day Last=Value(Large(Day))
Department=Subscription Name
Epoch Date=Days(Date) * 24 * 3600
Epoch Last Day=Large(Epoch Date)
Epoch Last Day Before=Epoch Last Day - (24 * 3600)
Is Last Two Days=If(Epoch Last Day=Epoch Date OR Epoch Last Day Before=Epoch Date,"Yes","No")
IT Resource Tower=If(Lookup(Lookup,Cloud Service Provider Lookup,Lookup,Tower)="","Unmapped",Lookup(Lookup,Cloud Service Provider Lookup,Lookup,Tower))
Lookup=Meter Category && {Meter Sub-Category} && Meter Name
Pcode=If(Find(".",Pcode Temporary,3)>0,Pcode Temporary,Left(Pcode Temporary,8))
Pcode Temporary=Mid(Tags,Find("P.",Tags),11)
Provider="Microsoft Azure“
Service Category=If(Lookup(Lookup,Cloud Service Provider Lookup,Lookup,Service Category)="","Unmapped",Lookup(Lookup,Cloud Service Provider Lookup,Lookup,Service Category))
Service Name=If(Lookup(Lookup,Cloud Service Provider Lookup,Lookup,Service Name)="","Unmapped",Lookup(Lookup,Cloud Service Provider Lookup,Lookup,Service Name))
Service Type=If(Lookup(Lookup,Cloud Service Provider Lookup,Lookup,Service Type)="","Unmapped",Lookup(Lookup,Cloud Service Provider Lookup,Lookup,Service Type))
Cost Center (Column Override)=If(Trim(Cost Center)="","Unknown",$_)
Day (Column Override)=IF(Len(TRIM(Day))=1,"0"&TRIM(Day),TRIM(Day))

 

Additionally, if you have any tags to parse out, you can create a column for each tag.

Environment Name=IF(FIND("Environment", Tags)>0, split((RIGHT(Tags,LEN(Tags)-FIND("Environment", Tags)-(LEN("Environment")+2))),1,""""), "")

See this article for a detailed explanation on how to use the formula.

 

Model the Table

You will need to add a model step in the Transform Pipeline. Modeled tables are necessary for creating metrics, which we will do next.

 

Object Identifier

Depending on the attributes you want to report on, you will need to add the respective columns to the object identifier. For the purposes of this guide, here are the necessary columns in the object identifier needed for the report to function at the proper granularity:

 

 

 

 

 

 

 

 

 

 

 

Create calculated metrics

Remember to set the Table Format to Currency for these metrics. 

 

 

 

 

 

 

Metric NameFormula
Cloud Invoice Cost MTD=Cloud Invoice
Previous Month Invoice Cost=PreviousMonth(Cloud Invoice)
Average Daily Cost MTD=Azure EA Detailed Bill Raw.Cost Average

 

 

 

Create Reports

You will need to create two new reports: Daily Transparency and Daily Transparency Details. Daily Transparency will drill to Daily Transparency Detail in the form of a modal pop-up. 

 

Daily Transparency Report 

The basic report is made up of 3 KPI's, a group of 3 Charts and 1 Table, and Slicers as needed. For this example 5 common slicers are shown.

 

KPI's

 

Slicers

Slicers can be added as needed to fit your use case/business needs. Here are some examples of things you could slice by.

 

 

Chart Group

The following report components are placed in a group. This allows you to add a pivot that will be applied to each chart to view spend by different categories.

 

Pivot

A pivot can be added as needed to fit your use case/business needs. Here are some examples of things you could pivot on.

 

 

 

Charts

 

 

 

Note: If you would like the Daily Invoice Cost Chart to be organized by Day rather than the ExtendedCost, you will need to add a Sort to the chart on IT Resource Tower.

 

 

Table

 

 

 

Charts Grouped

 

 

 

Daily Transparency Details Report

The Details Report gives an expanded view of of daily costs by what you are pivoting on.

The Details report is essentially a basic table with some slicers and a column picker.

 

Table

The base table is composed of two columns:

 

Column Picker

Add columns that make sense for your use case/business needs.

 

Slicers

Add slicers that make sense for your use case/business needs.

 

Create Drill-To

 

When creating the drill in this report, make sure you add a drill to each pivot you have. For this example that would mean pivoting on IT Resource Tower, Application, Service Category, Customer Group, and Business Unit then adding the drill to each column as it appears in the table.


#custom reports
#cloud cost
#ccm
#azure
#public cloud
#Cloud Cost Management
#Reports - Misc.






#Reports
#TBMStudio
#CloudServices
#Costing
#CostingStandard(CT-Foundation)
#Azure

Statistics
0 Favorited
6 Views
0 Files
0 Shares
0 Downloads

Comments

Thu March 25, 2021 11:33 AM

Hi Community. I know this post is a bit dated but I am trying to tackle a very real world use case (Azure CSP Utilization Data) at a rather large scale. I am really happy with the results from this guide.

What kind of load times are to be expected for the report components on a custom DT report like this?

I imagine performance is likely to be sluggish considering the fact that the data pre-processor/multicloud connector was instantiated for AWS and Azure EA, but we need the DT capability for Azure CSP Utilization :)  Can my assumption be validated so that I can communicate the expected behavior to my stakeholders?

Thank you!
@Apptio User Assistance
@Gregory Nutt et al.
#microsoft azure #cloud business management #slow performance​​​​​​​​​
#CostingStandard(CT-Foundation)

Thu October 03, 2019 07:50 PM

Sun February 24, 2019 05:07 AM

Nice one have been looking for something like this.. 


#CostingStandard(CT-Foundation)

Sat February 23, 2019 04:24 AM

Great article. This should be a reporting exercise in Apptio university.

 

Robert


#CostingStandard(CT-Foundation)