MSK Institute LogoMSK.Institute
HomeCourses
Book Free Demo➔Sign In
Free Demo➔
MSK Institute LogoMSK.Institute

Leading computer training academy in Shikohabad for software engineering, Python, web development, and digital literacy.

ISO 9001:2015 Certified Center
Follow & Connect
4.9

Programs & Admissions

  • All CoursesCatalog
  • Learning PathsRoadmaps
  • Student ProjectsShowcase
  • Live Classes & ScheduleLive
  • Upcoming Batches
  • Campuses & LocationsHub
  • Verify Certificates
  • Book Free Demo Class

Resources & Tools

  • Free Online Mock TestsAll Tests
  • NIELIT CCC Mock TestFree
  • Course & Career FinderQuiz
  • Study Material Hub
  • All MSK ToolsHub
  • Keyboard ShortcutsNew
  • TypeQuest Speed LabTyping
  • MSK Code PlaygroundCode
  • Interactive Tutorials
  • Quick Cheatsheets

Institute & Contact

  • About MSK Institute
  • Careers & InternshipsHiring
  • Publications & Blogs
  • Gali No. 3, Near Gyan Jyoti Public School,
    Adarsh Nagar, Shikohabad, Uttar Pradesh 283135
  • +91 83930 42166
  • mskshikohabad@gmail.com
  • Hours:Mon – Sat: 8:00 AM – 7:00 PM | Sun: 10:00 AM – 2:00 PM
  • 4.9 ★(38 Google Reviews)
© 2026 MSK Institute. All rights reserved.•Privacy Policy•Terms of Service•Disclaimer•Contact Us

Shikohabad's Leading Computer & Coding Academy

Home
Courses
Live
Material
Basic Functions (SUM, AVERAGE, COUNT)0%
Study MaterialsCheatsheet
Power BIProgress 0%
1.1What is Power BI?1.2Power BI Desktop vs Service1.3Power BI Workflow Overview
5.1What is DAX?5.2Basic Functions (SUM, AVERAGE, COUNT)5.3Calculated Measures
HomeTutorialsPower BIBasic Functions (SUM, AVERAGE, COUNT)
Calculated Measures

Basic Functions (SUM, AVERAGE, COUNT)

Beginner12 min read•Updated: 2026-11-18•By Er. Sumit Kumar (MSK Institute)
Study MaterialsCheatsheet

Reading Time: 8 Mins | Level: Beginner to Advanced


1. Basic Aggregation Functions in DAX

Standard aggregation functions summarize numerical columns down to a single scalar value:

1// Sum of a column
2Total Sales = SUM(Sales[Revenue])
3 
4// Average of a column
5Average Transaction Value = AVERAGE(Sales[Revenue])
6 
7// Count of non-blank rows
8Total Transactions = COUNT(Sales[Transaction_ID])
9 
10// Count of unique customers
11Unique Customers = DISTINCTCOUNT(Sales[Customer_ID])

2. The 'X' Iterator Functions (SUMX, AVERAGEX)

Standard SUM() can only take a single column as input. If you need to multiply two columns row-by-row and then sum the result, use the iterator function SUMX():

1// Iterates row-by-row through Sales table, multiplies Qty * Price, then sums the total!
2Total Revenue = SUMX(Sales, Sales[Quantity] * Sales[Unit_Price])

Interactive Quiz• Knowledge Check

Multiple Choice Questions

Question 1
Which DAX function counts the number of distinct, unique values in a column?
Question 2
What is the difference between SUM() and SUMX() in DAX?
Question 3
Which function counts rows in a table including rows that contain blanks?
Question 4
What does DIVIDE(Sales[Profit], Sales[Revenue], 0) accomplish that a simple forward slash Profit / Revenue does not?
Question 5
In DAX, which function returns the maximum value found in a column?

Next Lesson

Calculated Measures

Continue learning with hands-on practice, examples, and exercises in the upcoming topic.

Related Lessons

Previous LessonNext Lesson
What is DAX?Calculated Measures

Practice Quiz

Test your understanding of this lesson with 5 questions. Each question has one correct answer.

12-Month Data Analysis Mastery Program

Master Full-Stack Data Analytics (Excel, SQL, Python, Power BI & Tableau)

Combine 15 complete courses, 150 chapters, 541 topics, live SQL/Power BI/Tableau dashboards, and Scikit-Learn capstones at MSK Institute Shikohabad or Live Online.

View Full CourseBook Free Demo
PreviousNext
PreviousPrevNext