Download presentation
Published by秋释 纪 Modified over 7 years ago
1
Taking Analysis Services Tabular to Enterprise Levels Stacia Varga Data Inspirations
2
Stacia (Misner) Varga Over 30 years of IT experience, 17 years of BI experience Frequently speaks, writes, and teaches about Microsoft BI technologies Principal Consultant and Founder, Data Inspirations Data Platform MVP and SSAS Maestro Las Vegas User Group Chapter Leader and SQL Saturday Organizer Wants you to make sure you can understand what your data is telling you
3
Agenda Query Performance Modeling DAX Formulas Management #ITDEVCON
4
Query Performance
5
DAX Optimizations for Power BI
Pre SQL Server 2016 SQL Server 2016 1 trip But… Simple measures required 100s of round trips! #ITDevConnections
6
New Efficiencies Variables Conditional expressions
Nonempty calculations Multiple measures in same table Measure grouping Joins Multiple result sets Countrows() Available in all client tools! #ITDevConnections
7
Storage Engine Caching
Pre SQL Server 2016 SQL Server 2016 One cache for all databases One cache PER database #ITDevConnections
8
DirectQuery Pre SQL Server 2016 SQL Server 2016 Inefficient Simpler,
T-SQL queries Simpler, better queries #ITDevConnections
9
Why Use DirectQuery? Real-time data requirements
Data volume greater than available server memory Database security requirements #ITDevConnections
10
Why Not Use DirectQuery?
No support for calculated columns or tables No support for pasted tables Some DAX functions don’t translate to T-SQL #ITDevConnections
11
Modeling
12
More DirectQuery Sources
Pre SQL Server 2016 SQL Server 2016 SQL Server 2005 or higher SQL 2008 or higher Azure SQL Database Analytics Platform System Oracle 9i, 10g, 11g, and 12g Teradata V2R6, V2
13
DirectQuery Modeling Faster development Work only with metadata
#ITDevConnections
14
Sample Data for DirectQuery Modeling
Create a temporary partition Define WHERE clause to define subset #ITDevConnections
15
Calculated Table Use a DAX function or query to return a table
Use the table in relationships and calculations #ITDevConnections
16
Bi-Directional Cross-Filtering
#ITDevConnections
17
Translations Generate empty JSON translation file
Add translated text to JSON file Import JSON file into tabular model Build, process, or deploy model Use client allowing LCID in connection string #ITDevConnections
18
Translations Model requires translatedCaption and translatedDescription
19
DAX Formulas
20
Save incomplete formula
DAX Formula Editor Syntax coloring IntelliSense Formatting Formula fixup Save incomplete formula #ITDevConnections
21
New DAX Functions…Just a Few
Calendar() and CalendarAuto() DateDiff() Median() Many statistical functions Beta.Dist() Chisq.Inv() Expon.Dist() And trig… and filters... And more... #ITDevConnections
22
DAX Variables Non Bikes Sales Under $50 % of Total:= var tNonBikes = filter(values(Category[CategoryName]), Category[CategoryName]<> "Bikes") NonBikeSalesUnder50 = sumx(tNonBikes, calculate(sum([SalesAmount]),'Internet Sales'[UnitPrice]<50)) NonBikeAllSales = sumx(tNonBikes, calculate(sum([SalesAmount]))) return NonBikeSalesUnder50 / NonBikeAllSales #ITDevConnections
23
management
24
Partition Processing Pre SQL Server 2016 SQL Server 2016
Process each partition serially Process partitions in parallel (default) #ITDevConnections
25
Extended Events Create session (SSMS) Select events and event fields
Stream live or persist to file #ITDevConnections
26
WIN Rate This Session Now! Tell Us What You Thought of This Session
Rate with Mobile App: Be Entered to WIN Prizes! Tell Us What You Thought of This Session Select the session from the Agenda or Speakers menus Select the Actions tab Click Rate Session Rate with Website: Register at Go to Select this session from the list and rate it #ITDevConnections
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.