DAX Functions in Power BI - CNDRO.LLC
3166
post-template-default,single,single-post,postid-3166,single-format-standard,wp-custom-logo,theme-bridge,bridge-core-2.9.4,woocommerce-no-js,tribe-no-js,ehf-template-bridge,ehf-stylesheet-bridge-child,qode-page-transition-enabled,ajax_fade,page_not_loaded,,qode-title-hidden,qode_grid_1300,footer_responsive_adv,hide_top_bar_on_mobile_header,columns-4,qode-child-theme-ver-1.0.0,qode-theme-ver-27.8,qode-theme-bridge,qode_header_in_grid,wpb-js-composer js-comp-ver-6.7.0,vc_responsive,elementor-default,elementor-kit-2634

DAX Functions in Power BI

Data Analysis Expressions (DAX) is a formula expression language used in Power BI, and Power Pivot in Excel. DAX formulas include functions, operators, and values to perform advanced calculations and queries on data in related tables and columns in tabular data models.

Calculated Columns

1(Discount/Price) × 100

Measures

1] Discount * Price

Tables

1 state = DISTINCT(Students[State])

The Most Commonly Used DAX Functions are:

  • SUM, MIN, MAX, AVG
  • COUNTROWS, DISTINCTCOUNT
  • IF, AND, OR, SWITCH
  • ISBLANK, ISFILTERED, ISCROSSFILTERED
  • VALUES, ALL, FILTER, CALCULATE
  • UNION, INTERSECT, EXCEPT, NATURALINNERJOIN, SUMMARIZECOLUMNS, NATURALLEFTEROUTERJOIN, ISEMPTY
  • MEDIAN, GEOMEAN, DATEDIFFPower BI DAX Functions

Average

ItemAvg= AVERAGE(Items[Price])

Concatenate

ProMrp = CONCATENATE(Items[name],Items[code])

Max

HighestItemSold = MAX(Items[Price])

Min

LowestItemSold = MIN(Items[Price])

Count

number of sales=COUNT(Items[Sales_Id])

TotalYTD

ourcumlSales = TOTALYTD(SUM(Items[Price]),Invoices[Date])
No Comments

Post A Comment