You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cost-management-billing/costs/understand-cost-mgt-data.md
+22-3Lines changed: 22 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,13 +156,32 @@ Whether you use the Cost Management APIs, Power BI, or the Azure portal to retri
156
156
157
157
## Cost rounding
158
158
159
-
Costs shown in Cost Management are rounded. Costs returned by the Query API aren't rounded. For example:
159
+
Costs shown in Cost Management are rounded. Costs returned by the Query API and those shown in your cost and usage data files aren't rounded. For example:
160
160
161
161
- Cost analysis in the portal - Charges are rounded using standard rounding rules: values more than 0.5 and higher are rounded up, otherwise costs are rounded down. Rounding occurs only when values are shown. Rounding doesn't happen during data processing and aggregation. For example, cost analysis aggregates costs as follows:
162
-
-Charge 1: $0.004
162
+
- Charge 1: $0.004
163
163
- Charge 2: $0.004
164
-
-Aggregate charge rendered: 0.004 + 0.004 = 0.008. The charge shown is $0.01.
164
+
- Aggregate charge rendered: 0.004 + 0.004 = 0.008. The charge shown is $0.01.
165
165
- Query API - Charges are shown at eight decimal places and rounding doesn't occur.
166
+
- Cost and usage data files - Rounding doesn't occur.
167
+
168
+
### Cost rounding for Azure Commitment discount
169
+
170
+
Currency rounding for Azure Commitment discount (ACD) takes place on the unit rate aspect of the effective rate. Currency rounding depends on currency *precision* (or "minimal accountable currency unit" or "minor units"). For most world currencies, the precision is 1/100. It corresponds to two digits after the decimal point.
171
+
172
+
For example, assume an ACD is a 12.5% discount:
173
+
174
+
- After a 0.125 discount on a $0.09 market price, it equals 0.07875. When rounded, it’s a $0.08 unit rate.
175
+
- After a 0.125 discount on a 0.6 market price, it equals 0.525. When rounded, it’s a $0.53 unit rate.
176
+
- The total cost equals the billable quantity, multiplied by the rounded unit rate.
177
+
178
+
Charges are rounded using standard rounding rules: values of 0.5 and higher are rounded up, otherwise costs are rounded down.
179
+
180
+
The *effective price* can be specified for an Azure meter per one hour, while a billable unit might be 10 hours. In such cases, currency rounding happens on unit price and effective price per hour is scaled down 10 times the value.
181
+
182
+
For example, an unrounded single unit price after a 0.125 discount is applied to a per-hour price of 0.018 resulting in 0.01575000000. The billable QuantityPerUnit for the meter is 10 (hours), so Azure rounds to cents. The calculation is 10 * 0.01575 = 0.1575 and then gets rounded to $0.16. The *Quantity Per Unit* is rounded for your currency. In this example, it’s $0.16 per 10 hours. Because the EffectivePrice is per one hour, the currency-rounded unit price of 10 hours gets scaled down 10 times. Then, the Effective price per once per hour is computed and it has three digits after the decimal point. That results in $0.16 / 10 equaling $0.016.
183
+
184
+
Your usage and charges file shows all of the data involved in rounding. You can download the file from the Azure portal. For more information, see [Download usage and charges data](../understand/download-azure-daily-usage.md).
Copy file name to clipboardExpand all lines: articles/cost-management-billing/understand/download-azure-daily-usage.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@ If you have a Microsoft Customer Agreement (MCA), you must be a billing profile
20
20
21
21
Based on the type of subscription that you use, options to download your usage and charges vary.
22
22
23
+
Your cost and usage data files show unrounded data. For more information about rounding, see [Cost rounding](../costs/understand-cost-mgt-data.md#cost-rounding).
24
+
23
25
If you want to get cost and usage data using the Azure CLI, see [Get usage data with the Azure CLI](../automate/get-usage-data-azure-cli.md).
0 commit comments