{ "createOrReplace": { "object": { "database": "Test1200_Source" }, "database": { "name": "Test1200_Source", "id": "Test1200_Source", "compatibilityLevel": 1200, "model": { "culture": "en-US", "dataSources": [ { "name": "SqlServer localhost AdventureWorksDW2014", "connectionString": "Provider=SQLNCLI11;Data Source=.;Initial Catalog=AdventureWorksDW2014;Integrated Security=SSPI;Persist Security Info=false", "impersonationMode": "impersonateAccount", "account": "wadecb", "annotations": [ { "name": "ConnectionEditUISource", "value": "SqlServer" } ] } ], "tables": [ { "name": "DimCustomer", "columns": [ { "name": "CustomerKey", "dataType": "int64", "sourceColumn": "CustomerKey", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "GeographyKey", "dataType": "int64", "sourceColumn": "GeographyKey", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "CustomerAlternateKey", "dataType": "string", "sourceColumn": "CustomerAlternateKey", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "Title", "dataType": "string", "sourceColumn": "Title", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "FirstName", "dataType": "string", "sourceColumn": "FirstName", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "MiddleName", "dataType": "string", "sourceColumn": "MiddleName", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "LastName", "dataType": "string", "sourceColumn": "LastName", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "NameStyle", "dataType": "boolean", "sourceColumn": "NameStyle", "formatString": "\"TRUE\";\"TRUE\";\"FALSE\"", "sourceProviderType": "Boolean", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "BirthDate", "dataType": "dateTime", "sourceColumn": "BirthDate", "formatString": "General Date", "sourceProviderType": "DBDate", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "MaritalStatus", "dataType": "string", "sourceColumn": "MaritalStatus", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "Suffix", "dataType": "string", "sourceColumn": "Suffix", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "Gender", "dataType": "string", "sourceColumn": "Gender", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "EmailAddress", "dataType": "string", "sourceColumn": "EmailAddress", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "YearlyIncome", "dataType": "decimal", "sourceColumn": "YearlyIncome", "formatString": "\\$#,0.00;(\\$#,0.00);\\$#,0.00", "sourceProviderType": "Currency", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "TotalChildren", "dataType": "int64", "sourceColumn": "TotalChildren", "sourceProviderType": "UnsignedTinyInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "NumberChildrenAtHome", "dataType": "int64", "sourceColumn": "NumberChildrenAtHome", "sourceProviderType": "UnsignedTinyInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "EnglishEducation", "dataType": "string", "sourceColumn": "EnglishEducation", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SpanishEducation", "dataType": "string", "sourceColumn": "SpanishEducation", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "FrenchEducation", "dataType": "string", "sourceColumn": "FrenchEducation", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "EnglishOccupation", "dataType": "string", "sourceColumn": "EnglishOccupation", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SpanishOccupation", "dataType": "string", "sourceColumn": "SpanishOccupation", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "FrenchOccupation", "dataType": "string", "sourceColumn": "FrenchOccupation", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "HouseOwnerFlag", "dataType": "string", "sourceColumn": "HouseOwnerFlag", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "NumberCarsOwned", "dataType": "int64", "sourceColumn": "NumberCarsOwned", "sourceProviderType": "UnsignedTinyInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "AddressLine1", "dataType": "string", "sourceColumn": "AddressLine1", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "AddressLine2", "dataType": "string", "sourceColumn": "AddressLine2", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "Phone", "dataType": "string", "sourceColumn": "Phone", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "DateFirstPurchase", "dataType": "dateTime", "sourceColumn": "DateFirstPurchase", "formatString": "General Date", "sourceProviderType": "DBDate", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "CommuteDistance", "dataType": "string", "sourceColumn": "CommuteDistance", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] } ], "partitions": [ { "name": "DimCustomer", "dataView": "full", "source": { "dataSource": "SqlServer localhost AdventureWorksDW2014", "query": " SELECT [dbo].[DimCustomer].* FROM [dbo].[DimCustomer] " } } ], "annotations": [ { "name": "_TM_ExtProp_QueryDefinition", "value": " SELECT [dbo].[DimCustomer].* FROM [dbo].[DimCustomer] " }, { "name": "_TM_ExtProp_DbTableName", "value": "DimCustomer" }, { "name": "_TM_ExtProp_DbSchemaName", "value": "dbo" } ] }, { "name": "DimDate", "columns": [ { "name": "DateKey", "dataType": "int64", "sourceColumn": "DateKey", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "FullDateAlternateKey", "dataType": "dateTime", "sourceColumn": "FullDateAlternateKey", "formatString": "General Date", "sourceProviderType": "DBDate", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "DayNumberOfWeek", "dataType": "int64", "sourceColumn": "DayNumberOfWeek", "sourceProviderType": "UnsignedTinyInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "EnglishDayNameOfWeek", "dataType": "string", "sourceColumn": "EnglishDayNameOfWeek", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SpanishDayNameOfWeek", "dataType": "string", "sourceColumn": "SpanishDayNameOfWeek", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "FrenchDayNameOfWeek", "dataType": "string", "sourceColumn": "FrenchDayNameOfWeek", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "DayNumberOfMonth", "dataType": "int64", "sourceColumn": "DayNumberOfMonth", "sourceProviderType": "UnsignedTinyInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "DayNumberOfYear", "dataType": "int64", "sourceColumn": "DayNumberOfYear", "sourceProviderType": "SmallInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "WeekNumberOfYear", "dataType": "int64", "sourceColumn": "WeekNumberOfYear", "sourceProviderType": "UnsignedTinyInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "EnglishMonthName", "dataType": "string", "sourceColumn": "EnglishMonthName", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SpanishMonthName", "dataType": "string", "sourceColumn": "SpanishMonthName", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "FrenchMonthName", "dataType": "string", "sourceColumn": "FrenchMonthName", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "MonthNumberOfYear", "dataType": "int64", "sourceColumn": "MonthNumberOfYear", "sourceProviderType": "UnsignedTinyInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "CalendarQuarter", "dataType": "int64", "sourceColumn": "CalendarQuarter", "sourceProviderType": "UnsignedTinyInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "CalendarYear", "dataType": "int64", "sourceColumn": "CalendarYear", "sourceProviderType": "SmallInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "CalendarSemester", "dataType": "int64", "sourceColumn": "CalendarSemester", "sourceProviderType": "UnsignedTinyInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "FiscalQuarter", "dataType": "int64", "sourceColumn": "FiscalQuarter", "sourceProviderType": "UnsignedTinyInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "FiscalYear", "dataType": "int64", "sourceColumn": "FiscalYear", "sourceProviderType": "SmallInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "FiscalSemester", "dataType": "int64", "sourceColumn": "FiscalSemester", "sourceProviderType": "UnsignedTinyInt", "annotations": [ { "name": "Format", "value": "" } ] } ], "partitions": [ { "name": "DimDate", "dataView": "full", "source": { "dataSource": "SqlServer localhost AdventureWorksDW2014", "query": " SELECT [dbo].[DimDate].* FROM [dbo].[DimDate] " } } ], "hierarchies": [ { "name": "Calendar", "levels": [ { "name": "CalendarYear", "ordinal": 0, "column": "CalendarYear" }, { "name": "EnglishMonthName", "ordinal": 1, "column": "EnglishMonthName" }, { "name": "DateKey", "ordinal": 2, "column": "DateKey" } ] } ], "annotations": [ { "name": "_TM_ExtProp_QueryDefinition", "value": " SELECT [dbo].[DimDate].* FROM [dbo].[DimDate] " }, { "name": "_TM_ExtProp_DbTableName", "value": "DimDate" }, { "name": "_TM_ExtProp_DbSchemaName", "value": "dbo" } ] }, { "name": "DimProduct", "columns": [ { "name": "ProductKey", "dataType": "int64", "sourceColumn": "ProductKey", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "ProductAlternateKey", "dataType": "string", "sourceColumn": "ProductAlternateKey", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "ProductSubcategoryKey", "dataType": "int64", "sourceColumn": "ProductSubcategoryKey", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "WeightUnitMeasureCode", "dataType": "string", "sourceColumn": "WeightUnitMeasureCode", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SizeUnitMeasureCode", "dataType": "string", "sourceColumn": "SizeUnitMeasureCode", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "EnglishProductName", "dataType": "string", "sourceColumn": "EnglishProductName", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SpanishProductName", "dataType": "string", "sourceColumn": "SpanishProductName", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "FrenchProductName", "dataType": "string", "sourceColumn": "FrenchProductName", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "StandardCost", "dataType": "decimal", "sourceColumn": "StandardCost", "formatString": "\\$#,0.00;(\\$#,0.00);\\$#,0.00", "sourceProviderType": "Currency", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "FinishedGoodsFlag", "dataType": "boolean", "sourceColumn": "FinishedGoodsFlag", "formatString": "\"TRUE\";\"TRUE\";\"FALSE\"", "sourceProviderType": "Boolean", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "Color", "dataType": "string", "sourceColumn": "Color", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SafetyStockLevel", "dataType": "int64", "sourceColumn": "SafetyStockLevel", "sourceProviderType": "SmallInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "ReorderPoint", "dataType": "int64", "sourceColumn": "ReorderPoint", "sourceProviderType": "SmallInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "ListPrice", "dataType": "decimal", "sourceColumn": "ListPrice", "formatString": "\\$#,0.00;(\\$#,0.00);\\$#,0.00", "sourceProviderType": "Currency", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "Size", "dataType": "string", "sourceColumn": "Size", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SizeRange", "dataType": "string", "sourceColumn": "SizeRange", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "Weight", "dataType": "double", "sourceColumn": "Weight", "sourceProviderType": "Double", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "DaysToManufacture", "dataType": "int64", "sourceColumn": "DaysToManufacture", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "ProductLine", "dataType": "string", "sourceColumn": "ProductLine", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "DealerPrice", "dataType": "decimal", "sourceColumn": "DealerPrice", "formatString": "\\$#,0.00;(\\$#,0.00);\\$#,0.00", "sourceProviderType": "Currency", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "Class", "dataType": "string", "sourceColumn": "Class", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "Style", "dataType": "string", "sourceColumn": "Style", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "ModelName", "dataType": "string", "sourceColumn": "ModelName", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "EnglishDescription", "dataType": "string", "sourceColumn": "EnglishDescription", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "FrenchDescription", "dataType": "string", "sourceColumn": "FrenchDescription", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "ChineseDescription", "dataType": "string", "sourceColumn": "ChineseDescription", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "ArabicDescription", "dataType": "string", "sourceColumn": "ArabicDescription", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "HebrewDescription", "dataType": "string", "sourceColumn": "HebrewDescription", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "ThaiDescription", "dataType": "string", "sourceColumn": "ThaiDescription", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "GermanDescription", "dataType": "string", "sourceColumn": "GermanDescription", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "JapaneseDescription", "dataType": "string", "sourceColumn": "JapaneseDescription", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "TurkishDescription", "dataType": "string", "sourceColumn": "TurkishDescription", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "StartDate", "dataType": "dateTime", "sourceColumn": "StartDate", "formatString": "General Date", "sourceProviderType": "DBTimeStamp", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "EndDate", "dataType": "dateTime", "sourceColumn": "EndDate", "formatString": "General Date", "sourceProviderType": "DBTimeStamp", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "Status", "dataType": "string", "sourceColumn": "Status", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] } ], "partitions": [ { "name": "DimProduct", "dataView": "full", "source": { "dataSource": "SqlServer localhost AdventureWorksDW2014", "query": " SELECT [dbo].[DimProduct].* FROM [dbo].[DimProduct] " } } ], "annotations": [ { "name": "_TM_ExtProp_QueryDefinition", "value": " SELECT [dbo].[DimProduct].* FROM [dbo].[DimProduct] " }, { "name": "_TM_ExtProp_DbTableName", "value": "DimProduct" }, { "name": "_TM_ExtProp_DbSchemaName", "value": "dbo" } ] }, { "name": "DimPromotion", "columns": [ { "name": "PromotionKey", "dataType": "int64", "sourceColumn": "PromotionKey", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "PromotionAlternateKey", "dataType": "int64", "sourceColumn": "PromotionAlternateKey", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "EnglishPromotionName", "dataType": "string", "sourceColumn": "EnglishPromotionName", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SpanishPromotionName", "dataType": "string", "sourceColumn": "SpanishPromotionName", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "FrenchPromotionName", "dataType": "string", "sourceColumn": "FrenchPromotionName", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "DiscountPct", "dataType": "double", "sourceColumn": "DiscountPct", "sourceProviderType": "Double", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "EnglishPromotionType", "dataType": "string", "sourceColumn": "EnglishPromotionType", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SpanishPromotionType", "dataType": "string", "sourceColumn": "SpanishPromotionType", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "FrenchPromotionType", "dataType": "string", "sourceColumn": "FrenchPromotionType", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "EnglishPromotionCategory", "dataType": "string", "sourceColumn": "EnglishPromotionCategory", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SpanishPromotionCategory", "dataType": "string", "sourceColumn": "SpanishPromotionCategory", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "FrenchPromotionCategory", "dataType": "string", "sourceColumn": "FrenchPromotionCategory", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "StartDate", "dataType": "dateTime", "sourceColumn": "StartDate", "formatString": "General Date", "sourceProviderType": "DBTimeStamp", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "EndDate", "dataType": "dateTime", "sourceColumn": "EndDate", "formatString": "General Date", "sourceProviderType": "DBTimeStamp", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "MinQty", "dataType": "int64", "sourceColumn": "MinQty", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "MaxQty", "dataType": "int64", "sourceColumn": "MaxQty", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] } ], "partitions": [ { "name": "DimPromotion", "dataView": "full", "source": { "dataSource": "SqlServer localhost AdventureWorksDW2014", "query": " SELECT [dbo].[DimPromotion].* FROM [dbo].[DimPromotion] " } } ], "annotations": [ { "name": "_TM_ExtProp_QueryDefinition", "value": " SELECT [dbo].[DimPromotion].* FROM [dbo].[DimPromotion] " }, { "name": "_TM_ExtProp_DbTableName", "value": "DimPromotion" }, { "name": "_TM_ExtProp_DbSchemaName", "value": "dbo" } ] }, { "name": "DimSalesTerritory", "columns": [ { "name": "SalesTerritoryKey", "dataType": "int64", "sourceColumn": "SalesTerritoryKey", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SalesTerritoryAlternateKey", "dataType": "int64", "sourceColumn": "SalesTerritoryAlternateKey", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SalesTerritoryRegion", "dataType": "string", "sourceColumn": "SalesTerritoryRegion", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SalesTerritoryCountry", "dataType": "string", "sourceColumn": "SalesTerritoryCountry", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SalesTerritoryGroup", "dataType": "string", "sourceColumn": "SalesTerritoryGroup", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] } ], "partitions": [ { "name": "DimSalesTerritory", "dataView": "full", "source": { "dataSource": "SqlServer localhost AdventureWorksDW2014", "query": " SELECT [dbo].[DimSalesTerritory].* FROM [dbo].[DimSalesTerritory] " } } ], "annotations": [ { "name": "_TM_ExtProp_QueryDefinition", "value": " SELECT [dbo].[DimSalesTerritory].* FROM [dbo].[DimSalesTerritory] " }, { "name": "_TM_ExtProp_DbTableName", "value": "DimSalesTerritory" }, { "name": "_TM_ExtProp_DbSchemaName", "value": "dbo" } ] }, { "name": "FactInternetSales", "columns": [ { "name": "ProductKey", "dataType": "int64", "sourceColumn": "ProductKey", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "OrderDateKey", "dataType": "int64", "sourceColumn": "OrderDateKey", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "DueDateKey", "dataType": "int64", "sourceColumn": "DueDateKey", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "ShipDateKey", "dataType": "int64", "sourceColumn": "ShipDateKey", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "CustomerKey", "dataType": "int64", "sourceColumn": "CustomerKey", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "PromotionKey", "dataType": "int64", "sourceColumn": "PromotionKey", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SalesTerritoryKey", "dataType": "int64", "sourceColumn": "SalesTerritoryKey", "sourceProviderType": "Integer", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SalesOrderNumber", "dataType": "string", "sourceColumn": "SalesOrderNumber", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SalesOrderLineNumber", "dataType": "int64", "sourceColumn": "SalesOrderLineNumber", "sourceProviderType": "UnsignedTinyInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "RevisionNumber", "dataType": "int64", "sourceColumn": "RevisionNumber", "sourceProviderType": "UnsignedTinyInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "OrderQuantity", "dataType": "int64", "sourceColumn": "OrderQuantity", "sourceProviderType": "SmallInt", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "UnitPrice", "dataType": "decimal", "sourceColumn": "UnitPrice", "formatString": "\\$#,0.00;(\\$#,0.00);\\$#,0.00", "sourceProviderType": "Currency", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "ExtendedAmount", "dataType": "decimal", "sourceColumn": "ExtendedAmount", "formatString": "\\$#,0.00;(\\$#,0.00);\\$#,0.00", "sourceProviderType": "Currency", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "UnitPriceDiscountPct", "dataType": "double", "sourceColumn": "UnitPriceDiscountPct", "sourceProviderType": "Double", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "DiscountAmount", "dataType": "double", "sourceColumn": "DiscountAmount", "sourceProviderType": "Double", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "ProductStandardCost", "dataType": "decimal", "sourceColumn": "ProductStandardCost", "formatString": "\\$#,0.00;(\\$#,0.00);\\$#,0.00", "sourceProviderType": "Currency", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "TotalProductCost", "dataType": "decimal", "sourceColumn": "TotalProductCost", "formatString": "\\$#,0.00;(\\$#,0.00);\\$#,0.00", "sourceProviderType": "Currency", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "SalesAmount", "dataType": "decimal", "sourceColumn": "SalesAmount", "formatString": "\\$#,0.00;(\\$#,0.00);\\$#,0.00", "sourceProviderType": "Currency", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "TaxAmt", "dataType": "decimal", "sourceColumn": "TaxAmt", "formatString": "\\$#,0.00;(\\$#,0.00);\\$#,0.00", "sourceProviderType": "Currency", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "Freight", "dataType": "decimal", "sourceColumn": "Freight", "formatString": "\\$#,0.00;(\\$#,0.00);\\$#,0.00", "sourceProviderType": "Currency", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "CarrierTrackingNumber", "dataType": "string", "sourceColumn": "CarrierTrackingNumber", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "CustomerPONumber", "dataType": "string", "sourceColumn": "CustomerPONumber", "sourceProviderType": "WChar", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "OrderDate", "dataType": "dateTime", "sourceColumn": "OrderDate", "formatString": "General Date", "sourceProviderType": "DBTimeStamp", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "DueDate", "dataType": "dateTime", "sourceColumn": "DueDate", "formatString": "General Date", "sourceProviderType": "DBTimeStamp", "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "ShipDate", "dataType": "dateTime", "sourceColumn": "ShipDate", "formatString": "General Date", "sourceProviderType": "DBTimeStamp", "annotations": [ { "name": "Format", "value": "" } ] } ], "partitions": [ { "name": "FactInternetSales", "dataView": "full", "source": { "dataSource": "SqlServer localhost AdventureWorksDW2014", "query": " SELECT [dbo].[FactInternetSales].* FROM [dbo].[FactInternetSales] " } } ], "measures": [ { "name": "SalesAvg", "expression": "AVERAGE([SalesAmount])", "formatString": "\\$#,0.00;(\\$#,0.00);\\$#,0.00", "kpi": { "targetExpression": "'FactInternetSales'[Sales]", "targetFormatString": "\\$#,0.00;(\\$#,0.00);\\$#,0.00", "statusGraphic": "Traffic Light - Single", "statusExpression": [ "var x='FactInternetSales'[SalesAvg]/'FactInternetSales'[_SalesAvg Goal] return", "if(ISBLANK(x),BLANK(),", " If(x<0.26,-1,", "\t If(x<0.8,0,1)", " )", ")", "" ], "annotations": [ { "name": "GoalType", "value": "Measure" }, { "name": "KpiStatusType", "value": "Linear" }, { "name": "KpiThresholdType", "value": "Percentage" }, { "name": "KpiThresholdOrdering", "value": "Ascending" }, { "name": "KpiThresholdCount", "value": "2" }, { "name": "KpiThreshold_0", "value": "26" }, { "name": "KpiThreshold_1", "value": "80" } ] }, "annotations": [ { "name": "Format", "value": "" } ] }, { "name": "Sales", "expression": [ "VAR", " CurrentSales = SUM ( FactInternetSales[OrderQuantity] )", "VAR", " SalesLastYear = CALCULATE (", " SUM ( FactInternetSales[OrderQuantity] ),", " SAMEPERIODLASTYEAR ( 'DimDate'[FullDateAlternateKey] )", " )", "RETURN", " IF (", " AND ( CurrentSales <> 0, SalesLastYear <> 0 ),", " DIVIDE (", " CurrentSales - SalesLastYear,", " SalesLastYear", " )", " )" ], "formatString": "\\$#,0.00;(\\$#,0.00);\\$#,0.00", "annotations": [ { "name": "Format", "value": "" } ] } ], "annotations": [ { "name": "_TM_ExtProp_QueryDefinition", "value": " SELECT [dbo].[FactInternetSales].* FROM [dbo].[FactInternetSales] " }, { "name": "_TM_ExtProp_DbTableName", "value": "FactInternetSales" }, { "name": "_TM_ExtProp_DbSchemaName", "value": "dbo" } ] } ], "relationships": [ { "name": "e8247ff5-7756-4439-9b14-b840782b2991", "toTable": "DimCustomer", "toColumn": "CustomerKey", "fromTable": "FactInternetSales", "fromColumn": "CustomerKey" }, { "name": "9dc6d42e-d1dd-47ee-99bb-66e6415b9853", "toTable": "DimDate", "toColumn": "DateKey", "fromColumn": "OrderDateKey", "fromTable": "FactInternetSales", "isActive": false }, { "name": "b91c8435-2504-460c-8c8e-dccf07f7afcf", "toTable": "DimDate", "toColumn": "DateKey", "fromColumn": "DueDateKey", "fromTable": "FactInternetSales", "isActive": false }, { "name": "efaeafff-93c4-42fd-8682-b2fe1f9b68f1", "toTable": "DimProduct", "toColumn": "ProductKey", "fromTable": "FactInternetSales", "fromColumn": "ProductKey" }, { "name": "2036eea3-2630-464a-9272-bea5c306d2bf", "toTable": "DimPromotion", "toColumn": "PromotionKey", "fromTable": "FactInternetSales", "fromColumn": "PromotionKey" } ], "cultures": [ { "name": "es-ES", "translations": { "model": { "name": "Model", "perspectives": [ { "name": "Sales Perspective", "translatedCaption": "MuiBueno" } ] } } }, { "name": "pt-BR", "translations": { "model": { "name": "Model", "tables": [ { "name": "DimDate", "hierarchies": [ { "name": "Calendar", "translatedCaption": "MuitoBom" } ] }, { "name": "DimPromotion", "translatedDescription": "MuitoBom", "translatedCaption": "MuitoBom", "columns": [ { "name": "PromotionKey", "translatedCaption": "MuitoBom" } ] } ], "perspectives": [ { "name": "Sales Perspective", "translatedDescription": "MuitoBom", "translatedCaption": "MuitoBom" } ] } } } ], "perspectives": [ { "name": "Sales Perspective", "tables": [ { "name": "DimDate", "hierarchies": [ { "name": "Calendar" } ] }, { "name": "DimSalesTerritory", "columns": [ { "name": "SalesTerritoryAlternateKey" }, { "name": "SalesTerritoryCountry" }, { "name": "SalesTerritoryGroup" }, { "name": "SalesTerritoryKey" }, { "name": "SalesTerritoryRegion" } ] }, { "name": "FactInternetSales", "measures": [ { "name": "Sales" }, { "name": "SalesAvg" } ] } ] } ] } } } }