Top 20 DAX Functions Every Power BI Developer Should Know

Top 20 DAX Functions Every Power BI Developer Should Know


My PowerBI Course.


Top 20 essential DAX functions that every Power BI developer should know, categorized by their key applications:


1. Aggregation Functions


1)SUM: Returns the sum of a column.

Exp---SUM(Sales[Revenue])

2)AVERAGE: Calculates the average of a column.

Exp---AVERAGE(Sales[Quantity])

3)MIN: Returns the smallest numeric value in a column.

Exp---MIN(Sales[Price])

4)MAX: Returns the largest numeric value in a column.

Exp---MAX(Sales[Price])


2. Filter Functions


5)FILTER: Returns a table filtered by a condition.

Exp---FILTER(Sales, Sales[Region] = "North")

6)ALL: Removes filters from a column or table.

Exp---ALL(Sales[Region])

7)CALCULATE: Evaluates an expression with modified filters.

Exp---CALCULATE(SUM(Sales[Revenue]), Sales[Region] = "West")

8)REMOVEFILTERS: Clears all or selected filters from columns or tables.

Exp---REMOVEFILTERS(Sales[ProductCategory])


3. Time Intelligence Functions


Exp---9)DATESYTD: Returns the year-to-date dates.DATESYTD(Calendar[Date])

10)SAMEPERIODLASTYEAR: Returns the same period of the previous year.

Exp---SAMEPERIODLASTYEAR(Calendar[Date])

11)DATEADD: Returns a table of dates shifted by the specified interval.

Exp---DATEADD(Calendar[Date], -1, MONTH)

12)TOTALYTD: Returns the total year-to-date value for the measure.

Exp---TOTALYTD(SUM(Sales[Revenue]), Calendar[Date])


4. Logical Functions


13)IF: Returns one value if a condition is true, another if false.

Exp---IF(Sales[Revenue] > 100000, "High", "Low")

14)SWITCH: Evaluates an expression and returns specific values for matching results.

Exp---SWITCH(Sales[Category], "Electronics", "E", "Furniture", "F", "Other")

15)AND: Returns TRUE if both conditions are true.

Exp---AND(Sales[Quantity] > 10, Sales[Price] < 50)

16)OR: Returns TRUE if either condition is true.

Exp---OR(Sales[Discount] > 0.1, Sales[Region] = "West")


5. Table & Relationship Functions


17)RELATED: Returns a related value from another table.

Exp---RELATED(Product[ProductName])

18)LOOKUPVALUE: Returns the value of a column from a related table, filtered by specified criteria.

Exp---LOOKUPVALUE(Product[Price], Product[ProductID], Sales[ProductID])


6. Ranking & Sorting Functions


19)RANKX: Returns the ranking of a value in a table or column.

Exp---RANKX(ALL(Sales), Sales[Revenue])


7. Text Functions


20)CONCATENATE: Combines two text strings into one.

Exp---CONCATENATE(Customer[FirstName], " ", Customer[LastName])


Join My PowerBI Group.




Satyam Mishra

Pursuing Computer Science @Manipal University | Python , SQL , PowerBI | Data Scientist |

5 个月

Very helpful

要查看或添加评论,请登录

Anurodh Kumar的更多文章

  • Day 12: Advanced Data Cleaning with Power Query in PowerBI

    Day 12: Advanced Data Cleaning with Power Query in PowerBI

    Quality AI needs quality data - get AI-ready with SyncHub Welcome back to our Power BI series! Today, we’re diving into…

    1 条评论
  • Day 11: Time Intelligence Functions in PowerBI DAX

    Day 11: Time Intelligence Functions in PowerBI DAX

    Quality AI needs quality data - get AI-ready with SyncHub Welcome back to our Power BI series! Today, we’re diving into…

    1 条评论
  • Day 10: Creating Measures in PowerBI

    Day 10: Creating Measures in PowerBI

    Quality AI needs quality data - get AI-ready with SyncHub Welcome back to our LinkedIn Newsletter series on Power BI!…

  • Day 9: Creating Calculated Columns in PowerBI

    Day 9: Creating Calculated Columns in PowerBI

    Quality AI needs quality data - get AI-ready with SyncHub Welcome to Day 9 of our LinkedIn newsletter series! Today…

  • Day 8 - Introduction to DAX (Data Analysis Expressions) in PowerBI

    Day 8 - Introduction to DAX (Data Analysis Expressions) in PowerBI

    Quality AI needs quality data - get AI-ready with SyncHub Welcome to Day 8 of our data journey! Today, we’re diving…

  • Day 7: Creating Your First Visual in PowerBI

    Day 7: Creating Your First Visual in PowerBI

    Quality AI needs quality data - get AI-ready with SyncHub ?? Quick Recap In Day 6, we explored data modeling basics –…

  • Day 6: Data Modeling Basics in PowerBI

    Day 6: Data Modeling Basics in PowerBI

    Quality AI needs quality data - get AI-ready with SyncHub ?? Quick Recap In Day 5, we explored data cleaning with Power…

  • Benefits of Microsoft Fabric

    Benefits of Microsoft Fabric

    Microsoft Fabric Course. Microsoft Fabric is a unified analytics platform that integrates various tools and services to…

  • Day 5: Data Cleaning with Power Query

    Day 5: Data Cleaning with Power Query

    Quality AI needs quality data - get AI-ready with SyncHub ?? Quick Recap In Day 4, we explored connecting to data…

  • Top 10 Microsoft Fabric Interview Questions You Must Know in 2025

    Top 10 Microsoft Fabric Interview Questions You Must Know in 2025

    Microsoft Fabric Course. 1.

社区洞察

其他会员也浏览了