Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

of

DAX - 101  Slide 1 DAX - 101  Slide 2 DAX - 101  Slide 3 DAX - 101  Slide 4 DAX - 101  Slide 5 DAX - 101  Slide 6 DAX - 101  Slide 7 DAX - 101  Slide 8 DAX - 101  Slide 9 DAX - 101  Slide 10 DAX - 101  Slide 11 DAX - 101  Slide 12 DAX - 101  Slide 13 DAX - 101  Slide 14 DAX - 101  Slide 15 DAX - 101  Slide 16 DAX - 101  Slide 17 DAX - 101  Slide 18
Upcoming SlideShare
What to Upload to SlideShare
Next
Download to read offline and view in fullscreen.

5 Likes

Share

Download to read offline

DAX - 101

Download to read offline

This is an introductory session about DAX.

If you want to learn DAX then contact me.

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

DAX - 101

  1. 1. PASS Chennai Power BI – August 2018CPBIG Monthly Webinar DAX - 101 Hariharan Rajendran Microsoft Certified Trainer
  2. 2. CPBIG Sponsors PASS
  3. 3. CPBIG About Speaker Hariharan Lead Consultant, Your SQL Man (I) Pvt Ltd Solution Expert in MSBI Microsoft SQL Server, Azure & BI SAP HANA & Business Objects Speaker in DPS2017,DDD & CSSUG Blog http://dataap.org/author/hariharanr/ Twitter @imhariharanr Linked In hariharan-r-12635640 Email hari@yoursqlman.com Group Leader
  4. 4. CPBIG DAX Data Analysis Expressions Functional Language • The execution flows with function calls. This is for • Power Pivot • Power BI • SSAS Tabular
  5. 5. CPBIG Data Types Integer – 64 bit Decimal – floating point Currency – Money Date & Time TRUE / FALSE – Boolean String Binary Objects
  6. 6. CPBIG Data Type Conversion  + = Integer ; & = String Example • “5” + “4” = 9 • 5 & 4 = 54 Internal type conversion Operator overloading – Result depends on the inputs Date – Floating Point Value Date + 1 = ? Date & 1= ?
  7. 7. CPBIG DAX References Table Reference • ‘Date’ or Date • ‘Sales Region’ Column Reference • ‘Date’[Year] • ‘Sales Region’[City] Measure Reference • [Total Sales]
  8. 8. CPBIG Purpose of DAX Calculated Columns • Value is computed for each row • Materialized in tables as a static column – It consumes memory • It can be used for slicers and filters • All rows contain same formula. Calculated Measures • Numeric calculation • Not Materialized • Dynamic – Does not consume memory • Evaluated for each row based on the given context.
  9. 9. CPBIG Navigation Functions RELATED • Follows the relationships and returns the value of a column • Single value as a result RELATEDTABLE • Follows relationships and returns all the rows in relationship with the current row value.
  10. 10. CPBIG Logical & Conditional Functions Testing (Returns True & False) • ISBLANK • ISERROR • ISLOGICAL • ISNONTEXT • ISNUMBER • ISTEXT Logical • AND • IF • IFERROR • NOT • OR Example = 5+10+ IF( ISNUMBER("A")=FALSE,"0","A“ )
  11. 11. CPBIG Conditional Functions - SWITCH Advantages over IF • Easier to debug due to simpler code • Easier to write Checks for exact matches • [MONTH]=1 TRUE() • Allow range matches
  12. 12. CPBIGCPBIG DEMO
  13. 13. CPBIG Filter Context Applied by Filter constraints • Row and Column Headers • Slicers and Filters • DAX Formula Filters
  14. 14. CPBIG Calculate Function Apply a filter(s) to an expression Ratios / Percent of Totals • CALCULATE(<expression>, <filter1>, <filter2>…) Expression – An aggregate Filter – Override filter context ResellerSales = CALCULATE([Total Sales], ‘store’[StoreType]=“Reseller”) AllProductSales = CALCULATE([Total Sales], ALL(Product))
  15. 15. CPBIG Time Intelligence FIRSTDATE LASTDATE DATESBETWEEN DATEADD STARTOFMONTH STARTOFQUARTER STARTOFYEAR ENDOFMONTH ENDOFQUARTER ENDOFYEAR PARALLELPERIOD PREVIOUSDAY PREVIOUSMONTH PREVIOUSQUARTER PREVIOUSYEAR NEXTDAY NEXTMONTH NEXTQUARTER NEXTYEAR DATESMTD DATESQTD DATESYTD SAMEPERIODLASTYEAR TOTALMTD TOTALQTD TOTALYTD OPENINGBALANCEMONTH OPENINGBALANCEQUARTER OPENINGBALANCEYEAR CLOSING….
  16. 16. CPBIGCPBIG DEMO
  17. 17. CPBIG Q & A
  18. 18. CPBIG www.facebook.com/groups/CPBIG @ChennaiPowerBI bit.ly/ChennaiPowerBI Upcoming Events - http://dataap.org/cpbig/events/ Thank You - நன்றி
  • myLoveRebecca

    Jun. 8, 2021
  • RamachandraBadiger

    Aug. 10, 2020
  • YanPaingOo10

    Feb. 19, 2020
  • Waleed85

    Oct. 15, 2019
  • julioalcantara

    Mar. 6, 2019

This is an introductory session about DAX. If you want to learn DAX then contact me.

Views

Total views

587

On Slideshare

0

From embeds

0

Number of embeds

2

Actions

Downloads

18

Shares

0

Comments

0

Likes

5

×