-
Notifications
You must be signed in to change notification settings - Fork 173
Change the data type for ChargePeriodStart and ChargePeriodEnd to date
to prevent issues with the runningtotal
measures when more than one billing profile is present.
#1626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -251,25 +251,27 @@ table Costs | |
|
||
column ChargePeriodEnd | ||
dataType: dateTime | ||
formatString: General Date | ||
sourceProviderType: datetimeoffset | ||
formatString: Short Date | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Technically, we should probably use the same format as start dates. |
||
sourceProviderType: date | ||
lineageTag: 0d353195-2c13-4b43-ab97-8f691c508997 | ||
summarizeBy: none | ||
sourceColumn: ChargePeriodEnd | ||
|
||
annotation SummarizationSetBy = Automatic | ||
|
||
annotation UnderlyingDateTimeDataType = Date | ||
|
||
column ChargePeriodStart | ||
dataType: dateTime | ||
formatString: Mmm d, yyyy | ||
sourceProviderType: datetimeoffset | ||
formatString: Short Date | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Revert |
||
sourceProviderType: date | ||
lineageTag: 015b4c1a-f072-4c68-8f1b-d5e10c54b97e | ||
summarizeBy: none | ||
sourceColumn: ChargePeriodStart | ||
|
||
annotation SummarizationSetBy = Automatic | ||
|
||
annotation PBI_FormatHint = {"isCustom":true} | ||
annotation UnderlyingDateTimeDataType = Date | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Revert |
||
|
||
column CommitmentDiscountCategory | ||
dataType: string | ||
|
@@ -1836,9 +1838,10 @@ table Costs | |
|
||
|
||
", [MaxRows=null, MaxSize=null, NoTruncate=null, AdditionalSetStatements=null]), | ||
#"Changed Type" = Table.TransformColumnTypes(Source,{{"ChargePeriodEnd", type date}, {"ChargePeriodStart", type date}}), | ||
|
||
// Sort columns alphabetically | ||
Output = Table.ReorderColumns(Source, List.Sort(Table.ColumnNames(Source))) | ||
Output = Table.ReorderColumns(#"Changed Type", List.Sort(Table.ColumnNames(#"Changed Type"))) | ||
in | ||
Output | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert