Download presentation
Presentation is loading. Please wait.
Published byDarian Foxworthy Modified over 9 years ago
8
SELECT Orders.OrderDate, Products.OrderID, Products.ProductSKU FROM Products INNER JOIN Orders ON Products.OrderID = Orders.OrderID ORDER BY Products.ProductSKU SELECT Orders.OrderDate, Products.OrderID, Products.ProductSKU FROM Products INNER JOIN Orders ON Products.OrderID = Orders.OrderID ORDER BY Products.ProductSKU from p in Products join o in Orders on p.OrderID equals o.OrderID orderby p.ProductSKU select new { o.OrderDate, p.OrderID, p.ProductSKU } from p in Products join o in Orders on p.OrderID equals o.OrderID orderby p.ProductSKU select new { o.OrderDate, p.OrderID, p.ProductSKU } Products.Join(Orders, Products, o => o.OrderID, p => p.OrderID, (p, o) => new { o.OrderDate, p.OrderID, p.ProductSKU } ).OrderBy( p => p.ProductSKU ) Products.Join(Orders, Products, o => o.OrderID, p => p.OrderID, (p, o) => new { o.OrderDate, p.OrderID, p.ProductSKU } ).OrderBy( p => p.ProductSKU ) let Joined = Table.Join( Products, "OrderID", Orders, "OrderID" ), Columns = Table.SelectColumns(Joined, {"OrderDate", "OrderID", "ProductSKU"}), Sorted = Table.Sort( Columns, "ProductSKU" ), in Sorted let Joined = Table.Join( Products, "OrderID", Orders, "OrderID" ), Columns = Table.SelectColumns(Joined, {"OrderDate", "OrderID", "ProductSKU"}), Sorted = Table.Sort( Columns, "ProductSKU" ), in Sorted
9
let Source = Sql.Database("localhost", "AdventureWorksDW2012"), dbo_DimProduct = Source{[Schema="dbo",Item="DimProduct"]}[Data], RemovedOtherColumns = Table.SelectColumns(dbo_DimProduct,{"ProductKey", "EnglishProductName"}), RenamedColumns = Table.RenameColumns(RemovedOtherColumns,{{"EnglishProductName", "Product"}}), FilteredRows = Table.SelectRows(RenamedColumns, each [ProductKey] < 10) in FilteredRows let Source = Sql.Database("localhost", "AdventureWorksDW2012"), dbo_DimProduct = Source{[Schema="dbo",Item="DimProduct"]}[Data], RemovedOtherColumns = Table.SelectColumns(dbo_DimProduct,{"ProductKey", "EnglishProductName"}), RenamedColumns = Table.RenameColumns(RemovedOtherColumns,{{"EnglishProductName", "Product"}}), FilteredRows = Table.SelectRows(RenamedColumns, each [ProductKey] < 10) in FilteredRows
10
let Source = Sql.Database("localhost", "AdventureWorksDW2012"), dbo_DimProduct = Source{[Schema="dbo",Item="DimProduct"]}[Data], RemovedOtherColumns = Table.SelectColumns(dbo_DimProduct,{"ProductKey", "EnglishProductName"}), RenamedColumns = Table.RenameColumns(RemovedOtherColumns,{{"EnglishProductName", "Product"}}), FilteredRows = Table.SelectRows(RenamedColumns, each [ProductKey] < 10) in FilteredRows let Source = Sql.Database("localhost", "AdventureWorksDW2012"), dbo_DimProduct = Source{[Schema="dbo",Item="DimProduct"]}[Data], RemovedOtherColumns = Table.SelectColumns(dbo_DimProduct,{"ProductKey", "EnglishProductName"}), RenamedColumns = Table.RenameColumns(RemovedOtherColumns,{{"EnglishProductName", "Product"}}), FilteredRows = Table.SelectRows(RenamedColumns, each [ProductKey] < 10) in FilteredRows SELECT ProductKey, EnglishProductName as [Product] FROM [dbo].[DimProduct] WHERE [ProductKey] < 10 SELECT ProductKey, EnglishProductName as [Product] FROM [dbo].[DimProduct] WHERE [ProductKey] < 10
15
let Source = Web.Page(Web.Contents("http://www.bing.com/blogs/site_blogs/b/search/archive/2013/12/01/eoy.aspx")), WebTable = Source{index}[Data], RenamedColumns = Table.RenameColumns(WebTable,{{"Column1", "Rank"}, {"Column2", "2013"}}) in RenamedColumns let Source = Web.Page(Web.Contents("http://www.bing.com/blogs/site_blogs/b/search/archive/2013/12/01/eoy.aspx")), WebTable = Source{index}[Data], RenamedColumns = Table.RenameColumns(WebTable,{{"Column1", "Rank"}, {"Column2", "2013"}}) in RenamedColumns let Source = Sql.Database("localhost", "AdventureWorksDW2012"), DimCat = Source{[Schema="dbo",Item="DimProductCategory"]}[Data], DimSubCat = Source{[Schema="dbo",Item="DimProductSubcategory"]}[Data], DimCustomer = Source{[Schema="dbo",Item="DimCustomer"]}[Data], Joined = Table.NestedJoin(DimSubCat,{"CategoryKey"},DimCat,{"CategoryKey"},"Category",JoinKind.Inner) in Joined let Source = Sql.Database("localhost", "AdventureWorksDW2012"), DimCat = Source{[Schema="dbo",Item="DimProductCategory"]}[Data], DimSubCat = Source{[Schema="dbo",Item="DimProductSubcategory"]}[Data], DimCustomer = Source{[Schema="dbo",Item="DimCustomer"]}[Data], Joined = Table.NestedJoin(DimSubCat,{"CategoryKey"},DimCat,{"CategoryKey"},"Category",JoinKind.Inner) in Joined
16
Sql.Database(server as text, database as text, optional options as nullable record) as table MyCoolFunction = (index as number, category as text) as table Date.StartOfDay(dateTime as any) as any Sql.Database(server as text, database as text, optional options as nullable record) as table MyCoolFunction = (index as number, category as text) as table Date.StartOfDay(dateTime as any) as any
17
MakePerson = type function ( name as text, optional age as number ) as Person Phrases = type { text } Person = type [ Name = text, Age = number ] Persons = type table Person Value.Type( { "1", 1 } ) // type list { "1", 1 } is Phrases // true ( { "1", 1 } as Phrases ) {0} // "1" ( { "1", 1 } as Phrases ) {1} // 1 Value.Type( { "1", 1 } ) // type list { "1", 1 } is Phrases // true ( { "1", 1 } as Phrases ) {0} // "1" ( { "1", 1 } as Phrases ) {1} // 1
18
Null null Logical true, false Number 1, 1.2, 1.2e-3, #infinity, #nan Text "hello, world!" Date #date(2013, 3, 8) Time #time(15, 10, 0) DateTime #datetime(2013, 3, 8, 15, 10, 0) DateTimeZone #datetimezone(2013, 3, 8, 15, 10, 0, -8, 0) Duration #duration(1, 13, 59, 12.34)
19
List { 1, 2, 3, "hello, world" } Record [ a = 1, b = { 1, 2, 3 }, C2 = true ] Table #table( {"n", "n^2"}, { {1, 2}, {2, 4} }) Function MyFunction = ( x, y, optional z ) => if z = null then x + y else (x + y) / z Type type table [ n = number, #"n^2" = number ] Binary #binary({0x68, 0x65, 0x6C, 0x6C, 0x6F})
21
Table.SelectRows( table, (r) => r[Manager] = r[Buddy] ) Table.SelectRows( table, each _[Manager] = _[Buddy] ) Table.SelectRows( table, each [Manager] = [Buddy] )
22
if 1 < 2 then "hurray" else "sad face" let x = Number.Atan(3) in x * x error "Here I go wrong" error [ Reason = "Expression.Error", Message = "'t' should be positive", Detail = t ] error "Here I go wrong" error [ Reason = "Expression.Error", Message = "'t' should be positive", Detail = t ] try error "Bad" // [ HasError = true, // Error = [ // Reason = "Expression.Error", // Message = "Bad", // Detail = null // ] // ] try error "Bad" otherwise 42 // 42 try error "Bad" // [ HasError = true, // Error = [ // Reason = "Expression.Error", // Message = "Bad", // Detail = null // ] // ] try error "Bad" otherwise 42 // 42
26
Session codeTitleTime [DBI-B211]All You Need to Know about Microsoft Power BI for Office 365 Monday May 12 th 1.15 PM-2.30 PM [DBI-B324]What’s new in Power Query for ExcelMonday May 12 th 3.15-4.30 PM [DBI-B320]Interactive Data Visualization with Power View Tuesday May 13 th 8.30-9.45 AM [DBI-B318]Amazing Data Storytelling with Microsoft Power BI Q&A (Formerly InfoNavigator) Tuesday May 13th 10.15-11.30AM [DBI-B212]BI Power HourTuesday May 13 th 5PM-6.15 PM [DBI-B323]Power Query in Modern Corporate BIWednesday May 14 th 3.15PM-4.30 PM [DBI-B321]Power View with Analysis Services Multidimensional Models Thursday May 15th 8.30-9.45 AM
28
www.microsoft.com/learning http://microsoft.com/msdn http://microsoft.com/technet http://channel9.msdn.com/Events/TechEd
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.