Explore Courses
course iconCertificationPost Graduate Certification Program in Data Analytics and Applied AI
  • 100+ Hours
Trending
course iconCertificationExecutive Post Graduate Certificate in Data Science and Applied AI
  • 140+ Hours
Trending
course iconCertificationPG Certificate in Applied Generative Engineering & LLM Applications
  • 140+ Hours
Trending
course iconCertificationPG Certificate in AI Powered Product and Design Thinking
  • 150+ Hours
Trending
course iconCertificationAI Masters Program
  • 15 Weeks
Trending
course iconCertificationVibe Coding 101: No-code AI Programming
  • 4 Weeks
Trending
course iconCertificationApplied Agentic AI - No Code
  • 48 Hours
Trending
course iconCertificationGenerative AI and Prompt Engineering
  • 16 Hours
Trending
course iconCertificationAI-Powered Product Management
  • 8 Weeks
Trending
course iconCertificationApplied Agentic AI Certification
  • 8 Weeks
Trending
course iconCertificationGenerative AI Course for Scrum Masters
  • 16 Hours
course iconCertificationGenerative AI Course for Project Managers
  • 16 Hours
course iconCertificationGenerative AI Course for POPM
  • 16 Hours
course iconCertificationGen AI Course for Business Analysts
  • 16 Hours
course iconCertificationAI Powered Software Development
  • 16 Hours
course iconCertificationAI-Data Analytics with Power BI
  • 16 Hours
course iconCertificationAI-Driven Digital Marketing Training
  • 16 Hours
course iconCertificationGen AI for Enterprise Agilist
  • 16 Hours
course iconExecutive DiplomaExecutive Diploma in Machine Learning and AI
course iconExecutive DiplomaExecutive Diploma in Data Science & Artificial Intelligence from IIITB
course iconCertificationChief Technology Officer & AI Leadership Programme
course iconMaster's DegreeMaster of Science in Machine Learning & AI
course iconDual CertificationExecutive Programme in Generative AI for Leaders
course iconCertificationExecutive Post Graduate Programme in Applied AI and Agentic AI
course iconExecutive PG ProgramIIT KGP-Executive PG Certificate in Gen AI and Agentic
Universal AI by MIT Open Learningcourse iconScrum AllianceCertified ScrumMaster (CSM) Certification
  • 16 Hours
Best seller
course iconScrum AllianceCertified Scrum Product Owner (CSPO) Certification
  • 16 Hours
Best seller
course iconScaled AgileLeading SAFe 6.0 Certification
  • 16 Hours
Trending
course iconScrum.orgProfessional Scrum Master (PSM) Certification
  • 16 Hours
course iconScaled AgileAI-Empowered SAFe® 6.0 Scrum Master
  • 16 Hours
course iconPMIPMI Agile Certified Practitioner (PMI-ACP) Certification
  • 21 Hours
Best seller
course iconScaled Agile, Inc.Implementing SAFe 6.0 (SPC) Certification
  • 32 Hours
Recommended
course iconScaled Agile, Inc.AI-Empowered SAFe® 6 Release Train Engineer (RTE) Course
  • 24 Hours
course iconScaled Agile, Inc.SAFe® AI-Empowered Product Owner/Product Manager (6.0)
  • 16 Hours
Trending
course iconIC AgileICP Agile Certified Coaching (ICP-ACC)
  • 24 Hours
course iconScrum.orgProfessional Scrum Product Owner I (PSPO I) Training
  • 16 Hours
course iconAgile Management Master's Program
  • 32 Hours
Trending
course iconAgile Excellence Master's Program
  • 32 Hours
Agile and ScrumScrum MasterProduct OwnerSAFe AgilistAgile Coachcourse iconPMIProject Management Professional (PMP) Certification
  • 36 Hours
Best seller
course iconAxelosPRINCE2 Foundation & Practitioner Certification
  • 32 Hours
course iconAxelosPRINCE2 Foundation Certification
  • 16 Hours
course iconAxelosPRINCE2 Practitioner Certification
  • 16 Hours
course iconPMICertified Associate in Project Management (CAPM)®
  • 23 Hours
Best seller
course iconPMIProgram Management Professional (PgMP®)
  • 24 Hours
Best seller
course iconPMIPortfolio Management Professional (PfMP)®
  • 24 Hours
Best seller
course iconPMIProject Management Institute-Risk Management Professional (PMI-RMP)®
  • 30 Hours
Best seller
Change ManagementProject Management TechniquesCertified Associate in Project Management (CAPM) CertificationOracle Primavera P6 CertificationMicrosoft Projectcourse iconJob OrientedProject Management Master's Program
  • 45 Hours
Trending
PRINCE2 Practitioner CoursePRINCE2 Foundation CourseProject ManagerProgram Management ProfessionalPortfolio Management Professionalcourse iconCompTIACompTIA Security+
  • 40 Hours
Best seller
course iconEC-CouncilCertified Ethical Hacker (CEH v13) Certification
  • 40 Hours
course iconISACACertified Information Systems Auditor (CISA) Certification
  • 40 Hours
course iconISACACertified Information Security Manager (CISM) Certification
  • 40 Hours
course icon(ISC)²Certified Information Systems Security Professional (CISSP)
  • 40 Hours
course icon(ISC)²Certified Cloud Security Professional (CCSP) Certification
  • 40 Hours
course iconCertified Information Privacy Professional - Europe (CIPP-E) Certification
  • 16 Hours
course iconISACACOBIT5 Foundation
  • 16 Hours
course iconPayment Card Industry Security Standards (PCI-DSS) Certification
  • 16 Hours
CISSPcourse iconAWSAWS Certified Solutions Architect - Associate
  • 32 Hours
Best seller
course iconAWSAWS Cloud Practitioner Certification
  • 32 Hours
course iconAWSAWS DevOps Certification
  • 24 Hours
course iconMicrosoftAzure Fundamentals Certification
  • 16 Hours
course iconMicrosoftAzure Administrator Certification
  • 24 Hours
Best seller
course iconMicrosoftAzure Data Engineer Certification
  • 45 Hours
Recommended
course iconMicrosoftAzure Solution Architect Certification
  • 32 Hours
course iconMicrosoftAzure DevOps Certification
  • 40 Hours
course iconAWSSystems Operations on AWS Certification Training
  • 24 Hours
course iconAWSDeveloping on AWS
  • 24 Hours
course iconJob OrientedAWS Cloud Architect Masters Program
  • 48 Hours
New
Cloud EngineerCloud ArchitectAWS Certified Developer Associate - Complete GuideAWS Certified DevOps EngineerAWS Certified Solutions Architect AssociateMicrosoft Certified Azure Data Engineer AssociateMicrosoft Azure Administrator (AZ-104) CourseAWS Certified SysOps Administrator AssociateMicrosoft Certified Azure Developer AssociateAWS Certified Cloud Practitionercourse iconAxelosITIL Foundation (Version 5) Certification
  • 16 Hours
New
course iconAxelosITIL 4 Foundation Certification
  • 16 Hours
Best seller
course iconAxelosITIL Foundation Bridge Course (Version 5)
  • 8 Hours
New
course iconAxelosITIL Practitioner Certification
  • 16 Hours
course iconPeopleCertISO 14001 Foundation Certification
  • 16 Hours
course iconPeopleCertISO 20000 Certification
  • 16 Hours
course iconPeopleCertISO 27000 Foundation Certification
  • 24 Hours
course iconAxelosITIL 4 Specialist: Create, Deliver and Support Training
  • 24 Hours
course iconAxelosITIL 4 Specialist: Drive Stakeholder Value Training
  • 24 Hours
course iconAxelosITIL 4 Strategist Direct, Plan and Improve Training
  • 16 Hours
ITIL 4 Specialist: Create, Deliver and Support ExamITIL 4 Specialist: Drive Stakeholder Value (DSV) CourseITIL 4 Strategist: Direct, Plan, and ImproveITIL 4 FoundationData Science with PythonMachine Learning with PythonData Science with RMachine Learning with RPython for Data ScienceDeep Learning Certification TrainingNatural Language Processing (NLP)TensorFlowSQL For Data AnalyticsData ScientistData AnalystData EngineerAI EngineerData Analysis Using ExcelDeep Learning with Keras and TensorFlowDeployment of Machine Learning ModelsFundamentals of Reinforcement LearningIntroduction to Cutting-Edge AI with TransformersMachine Learning with PythonMaster Python: Advance Data Analysis with PythonMaths and Stats FoundationNatural Language Processing (NLP) with PythonPython for Data ScienceSQL for Data Analytics CoursesAI Advanced: Computer Vision for AI ProfessionalsMaster Applied Machine LearningMaster Time Series Forecasting Using Pythoncourse iconDevOps InstituteDevOps Foundation Certification
  • 16 Hours
Best seller
course iconCNCFCertified Kubernetes Administrator
  • 32 Hours
New
course iconDevops InstituteDevops Leader
  • 16 Hours
KubernetesDocker with KubernetesDockerJenkinsOpenstackAnsibleChefPuppetDevOps EngineerDevOps ExpertCI/CD with Jenkins XDevOps Using JenkinsCI-CD and DevOpsDocker & KubernetesDevOps Fundamentals Crash CourseMicrosoft Certified DevOps Engineer ExpertAnsible for Beginners: The Complete Crash CourseContainer Orchestration Using KubernetesContainerization Using DockerMaster Infrastructure Provisioning with Terraformcourse iconCertificationTableau Certification
  • 24 Hours
Recommended
course iconCertificationData Visualization with Tableau Certification
  • 24 Hours
course iconMicrosoftMicrosoft Power BI Certification
  • 24 Hours
Best seller
course iconTIBCOTIBCO Spotfire Training
  • 36 Hours
course iconCertificationData Visualization with QlikView Certification
  • 30 Hours
course iconCertificationSisense BI Certification
  • 16 Hours
Data Visualization Using Tableau TrainingData Analysis Using ExcelReactNode JSAngularJavascriptPHP and MySQLAngular TrainingBasics of Spring Core and MVCFront-End Development BootcampReact JS TrainingSpring Boot and Spring CloudMongoDB Developer Coursecourse iconBlockchain Professional Certification
  • 40 Hours
course iconBlockchain Solutions Architect Certification
  • 32 Hours
course iconBlockchain Security Engineer Certification
  • 32 Hours
course iconBlockchain Quality Engineer Certification
  • 24 Hours
course iconBlockchain 101 Certification
  • 5+ Hours
NFT Essentials 101: A Beginner's GuideIntroduction to DeFiPython CertificationAdvanced Python CourseR Programming LanguageAdvanced R CourseJavaJava Deep DiveScalaAdvanced ScalaC# TrainingMicrosoft .Net Frameworkcourse iconCareer AcceleratorSoftware Engineer Interview Prep
  • 3 Months
Data Structures and Algorithms with JavaScriptData Structures and Algorithms with Java: The Practical GuideLinux Essentials for Developers: The Complete MasterclassMaster Git and GitHubMaster Java Programming LanguageProgramming Essentials for BeginnersSoftware Engineering Fundamentals and Lifecycle (SEFLC) CourseTest-Driven Development for Java ProgrammersTypeScript: Beginner to Advanced

Power BI DAX Functions: Cheat Sheet with Examples

By KnowledgeHut .

Updated on Oct 23, 2026

Share:

Quick Overview

  • Power BI DAX functions help calculate sales totals, profit margins, unique customers, filtered results, and year-over-year growth in Power BI reports.
  • Functions such as SUM, AVERAGE, COUNTROWS, DISTINCTCOUNT, and DIVIDE handle common calculations, while SUMX performs row-by-row calculations before adding the results.
  • CALCULATE, FILTER, and REMOVEFILTERS help control filter context and create measures such as category-wise sales and percentage of total.
  • TOTALYTD, SAMEPERIODLASTYEAR, and DATEADD support time-based analysis, including year-to-date sales and comparisons with previous periods.
  • This guide covers the most useful Power BI DAX functions, basic aggregation and calculations, filtering and dynamic measures, date and time intelligence, differences between commonly confused functions, and common mistakes to avoid.

Strengthen Power BI skills and learn to build interactive dashboards, analyze data, and apply DAX functions through practical training with Microsoft Power BI Training. 

Last Few Days to Save Up To 90% on Career Transformation

Ends December 1 – Don't Miss Out!

What are the most useful Power BI DAX functions?

Power BI DAX functions are built-in functions which help in carrying out calculations on the data in a model. They are capable of calculating totals, applying conditions, altering the filter context, and supporting time-based analysis.

The following is a brief reference table of useful functions for everyday Power BI reports.

15 useful Power BI DAX functions, including SUM, AVERAGE, COUNTROWS, DISTINCTCOUNT, CALCULATE, FILTER, and TOTALYTD.

Function

Purpose

Example use

SUM Adds values in a column Calculate total sales
AVERAGE Calculates the average Find average sales
COUNTROWS Counts table rows Count sales records
DISTINCTCOUNT Counts unique values Count unique customers
DIVIDE Divides two values safely Calculate profit margin
SUMX Evaluates an expression for each row and adds the results Calculate revenue from quantity and price
CALCULATE Evaluates a calculation under modified filters Calculate sales for a category
FILTER Returns rows that meet a condition Find high-value sales
IF Checks a condition and returns a result Label profit or loss
SWITCH Evaluates multiple conditions or matching values Group sales into performance bands
RELATED Retrieves a value from a related table Get a product category
SELECTEDVALUE Returns a value when one distinct value is selected Display a selected category
REMOVEFILTERS Removes specified filters Calculate a category's share of total sales
TOTALYTD Calculates year-to-date values Track sales so far this year
SAMEPERIODLASTYEAR Returns the corresponding dates from the previous year Compare yearly sales

Also Read: Features of Power BI

What are the basic DAX functions for aggregation and calculations?

These are the basic Power BI DAX functions very much like SUM and AVERAGE in Excel, which are used in measures, so their result will change as the filters and slicers on the report page change.

1. SUM, AVERAGE, MIN and MAX

These four functions perform basic calculations on a column. SUM adds up the values in a column. AVERAGE gives the mean. MIN and MAX give the smallest and largest values respectively. They're the trio of functions that answer the first questions in any report: what's the total, what's the average, what's the best and what's the worst.

 

Total Sales = SUM(Sales[SalesAmount])

 

Average Sales = AVERAGE(Sales[SalesAmount])

 

Highest Sale = MAX(Sales[SalesAmount])

 

Lowest Sale = MIN(Sales[SalesAmount])

For example, a sales report can use these measures to show total revenue, average transaction value, and the highest and lowest sales amounts. The results can change based on the filters applied to the report.

2. COUNTROWS and DISTINCTCOUNT

COUNTROWS counts the rows in a table and is therefore ideal for counting total orders. DISTINCTCOUNT counts only the unique values in a column. A customer who has placed five orders will be counted five times by COUNTROWS and only once by DISTINCTCOUNT.

Total Sales Records = COUNTROWS(Sales)

 

Unique Customers =

    DISTINCTCOUNT(Sales[CustomerID])

3. DIVIDE and SUMX

Use DIVIDE when one value needs to be divided by another. It handles zero or blank denominators more safely than ordinary division.

Profit Margin =

    DIVIDE([Total Profit], [Total Sales], 0)

This measure divides total profit by total sales. If total sales is zero or blank, the formula returns zero.

SUMX is useful when a calculation must be performed for every row before the results are added.

Calculated Revenue =

    SUMX(

        Sales,

        Sales[Quantity] * Sales[UnitPrice]

    )

For each row, Power BI multiplies quantity by unit price and then adds the results. This is useful when revenue is not already stored as a column in the source data.

Also Read: Power BI Skills 

Which DAX functions help filter data and create dynamic measures?

Some DAX calculations need to respond to report filters or apply specific conditions. Functions such as CALCULATE, FILTER, REMOVEFILTERS, IF, and SWITCH help create these measures.

1. CALCULATE, FILTER and REMOVEFILTERS

CALCULATE is the most important function in DAX. It takes a measure and re-evaluates it under a new filter context.

Electronics Sales =

    CALCULATE(

        [Total Sales],

        Product[Category] = "Electronics"

    )

This measure calculates sales for the Electronics category while retaining other applicable report filters.

FILTER returns a table of rows that meet a condition. It is useful when your logic is more complex than a simple column match.

For example, a measure that calculates sales from transactions above a certain amount can use FILTER to identify qualifying rows.

High Value Sales =

    CALCULATE(

        [Total Sales],

        FILTER(

            Sales,

            Sales[SalesAmount] > 1000

        )

    )

This example assumes that SalesAmount contains the amount for each sales row.

REMOVEFILTERS removes the filters, which is useful for calculating the percentage of a larger total.

Sales % of Total =

    DIVIDE(

        [Total Sales],

        CALCULATE(

            [Total Sales],

            REMOVEFILTERS(Product[Category])

        )

    )

2. IF, SWITCH and SELECTEDVALUE

These functions help make reports more flexible and easier to understand. IF handles a simple two way decision. SWITCH is cleaner when you have multiple outcomes and you can use TRUE() as the first argument to have it test ranges. SELECTEDVALUE returns the selected item where exactly one is selected and that makes it ideal for dynamic report titles.

Profit Status =

    IF([Total Profit] >= 0, "Profit", "Loss")

 

Sales Band =

    SWITCH(

        TRUE(),

        [Total Sales] >= 100000, "High",

        [Total Sales] >= 50000, "Medium",

        "Low"

    )

 

Selected Category =

    SELECTEDVALUE(Product[Category], "Multiple or none")

Also Read: Top 20 Benefits of Power BI you Should Know in 2026 

Which DAX functions are used for date and time intelligence?

Time intelligence is one of the primary reasons people go and learn Power BI DAX functions in the first instance. Business users are always looking to see year to date numbers or to compare this year with last year and these functions enable you to do that with very little code. The one rule that applies to all of them is that you need a proper date table in the model i.e. one that's marked as a date table.

1. TOTALYTD and DATESYTD

Year to date reporting is the sum of the values from the start of the year up to the most recent date in the current filter. TOTALYTD does this in one go. DATESYTD returns the list of dates and CALCULATE then uses that list which is useful when you have additional filters required.

Sales YTD =

    TOTALYTD(

        [Total Sales],

        'Date'[Date]

    )

 

Sales YTD (DATESYTD) =

    CALCULATE(

        [Total Sales],

        DATESYTD('Date'[Date])

    )

Both give the same answer in this case. TOTALYTD is the shorter of the two so that's the one most people start with.

2. SAMEPERIODLASTYEAR and DATEADD

SAMEPERIODLASTYEAR simply shifts the current date selection back by one year. DATEADD is more flexible as it can shift the date by days, months, quarters or years. Once you have the value for last year the year on year change is just a simple division.

Sales Last Year =

    CALCULATE(

        [Total Sales],

        SAMEPERIODLASTYEAR('Date'[Date])

    )

To calculate the percentage change from the previous year, use:

Sales YoY Change % =

    DIVIDE(

        [Total Sales] - [Sales Last Year],

        [Sales Last Year]

    )

Build a strong foundation in analytics with the PG Certificate in Data Analytics and Applied AI, covering Power BI, SQL, Python, and AI-powered analytics for real-world business problems. 

What is the difference between commonly confused DAX functions?

Some Power BI DAX functions appear similar but serve different purposes. Choosing the right one helps prevent incorrect results and makes formulas easier to maintain.

Functions

Key difference

When to use

SUM vs. SUMX SUM adds a column; SUMX evaluates an expression for each row and adds the results Use SUM for existing totals and SUMX for calculations such as quantity × price
COUNTROWS vs. DISTINCTCOUNT COUNTROWS counts rows; DISTINCTCOUNT counts unique values in a column Use the first for records and the second for unique customers
CALCULATE vs. FILTER CALCULATE evaluates an expression under modified filters; FILTER returns a filtered table Use them for filtered measures and more complex row conditions
IF vs. SWITCH IF checks a condition; SWITCH handles multiple branches or matching values Use IF for simple decisions and SWITCH for several categories
ALL vs. REMOVEFILTERS ALL can return a table or act as a filter modifier; REMOVEFILTERS is specifically used to clear filters Use ALL when a table expression is needed and REMOVEFILTERS when the goal is to remove filters

Also Read: Power BI with AI vs Traditional Data Analytics: What’s Different? 

What are the common mistakes to avoid when using DAX functions?

Using DAX incorrectly can lead to unexpected totals, blank results, or inaccurate percentages. Keep these common mistakes in mind when writing formulas.

1. Using SUM instead of SUMX

SUM will only work on a single column. If revenue is a function of quantity and price which are stored in separate columns then SUM won't work as it can't multiply them together first. SUMX will do the calculation row by row and then sum the results which will give you the correct total.

2. Confusing COUNTROWS with DISTINCTCOUNT

A report which shows "customers" but uses COUNTROWS will count every order rather than every customer. The number will appear larger than it should. Using DISTINCTCOUNT on the customer ID column will correct this. Choose the function based on whether the requirement is to count records or distinct values.

3. Ignoring filter context in CALCULATE

A measure doesn't return a single value. It varies with every slicer, every row and every column in the visual. CALCULATE can override that context but only if you're very careful about the filters you use. It's always worth testing the measure in a simple table first to catch any surprises.

4. Dividing without handling zero values

If you divide numbers without checking for zero values first, you can run into errors. Division by zero is not allowed in math. If your code tries to do this, it will crash or give wrong results. Always check that the divisor is not zero before dividing. This helps keep your program running smoothly and prevents mistakes.

5. Using time-intelligence functions without a proper date table

TOTALYTD, SAMEPERIODLASTYEAR and DATEADD all require a continuous date table with no gaps. If you don't have one then you can end up with incorrect results or blank results. The safe way to set this up is to have a separate date table (marked as a date table) and link it to the fact table.

Take your AI skills further with the Applied Agentic AI Certification Course and learn to build intelligent AI applications through hands-on projects.

Conclusion

Power BI DAX functions make it easier to turn raw data into meaningful insights, from calculating total sales and profit margins to tracking year-to-date performance. Choosing the right function, whether SUMX for row-by-row calculations or CALCULATE for changing filter context, helps produce accurate results.

Beginners should start with basic aggregation functions before moving to conditional logic and time intelligence. Practicing these formulas with real datasets is the best way to understand how DAX works in different reporting situations.

Have A Query? Get in Touch With Our Customer Support | upGrad KnowledgeHut 

Frequently Asked Questions (FAQs)

1. Is DAX more difficult than SQL?

DAX can be more challenging than basic SQL because it relies heavily on filter context and data model relationships. SQL is commonly used to query and manipulate data in databases, while DAX creates calculations within Power BI data models. Beginners can start with simple DAX functions and gradually learn more advanced calculations.

2. What are the top 10 most used DAX functions?

Ten commonly used DAX functions are SUM, AVERAGE, COUNTROWS, DISTINCTCOUNT, DIVIDE, SUMX, CALCULATE, FILTER, IF, and SWITCH. They help calculate totals, averages, unique counts, ratios, filtered results, and conditional values. The best function depends on the calculation required.

3. Which DAX functions should beginners learn first?

Beginners should start with SUM, AVERAGE, MIN, MAX, COUNTROWS, and DISTINCTCOUNT for basic calculations. Next, learn DIVIDE and SUMX for ratios and row-by-row calculations. Then practice CALCULATE, IF, and SWITCH to create filtered measures and conditional results.

4. What is the Power BI DAX functions cheat sheet?

A Power BI DAX functions cheat sheet is a quick reference that lists commonly used DAX functions, their purposes, syntax, and examples. It helps users choose the right function for tasks such as calculating totals, counting unique values, filtering data, and comparing dates.

5. How do I count unique customers in DAX?

Use the DISTINCTCOUNT function to count unique customer IDs in a table. For example:

Unique Customers =

    DISTINCTCOUNT(Sales[CustomerID])

Replace Sales[CustomerID] with the relevant table and customer ID column. The result counts each distinct customer once within the current filter context.

6. How does CALCULATE work in Power BI?

CALCULATE evaluates an expression under a modified filter context. It can add filters, replace existing filters on specified columns, or work with filter-removal functions. For example, CALCULATE([Total Sales], Product[Category] = "Electronics") calculates sales for the Electronics category while respecting other applicable filters.

7. What is the difference between COUNT and COUNTROWS?

COUNT counts nonblank values in a column that contains supported values, such as numbers or dates. COUNTROWS counts the rows in a table or filtered table, regardless of the values in individual columns. Use COUNT to count populated column values and COUNTROWS to count records.

8. Which DAX function is used for month-over-month growth?

Month-over-month growth can be calculated using DATEADD with CALCULATE to obtain the previous month's sales, followed by DIVIDE to calculate the percentage change. For example, the formula is (Current Month Sales - Previous Month Sales) ÷ Previous Month Sales. A proper date table is recommended for reliable time-based calculations.

9. Which DAX function is best for conditional calculations?

IF is suitable for calculations involving a single condition, while SWITCH is useful when several conditions or possible results must be evaluated. For example, IF([Total Profit] > 0, "Profit", "Loss") labels a result based on profitability. Use SWITCH to classify sales into multiple performance categories.

10. Why does a DAX measure return an unexpected result?

A DAX measure may return an unexpected result because of filter context, incorrect relationships between tables, an unsuitable function, or missing values in the data. Check the measure's filters, the model relationships, and whether the calculation should respond to report slicers. Test the measure with a small dataset to identify the source of the issue.

KnowledgeHut .

1647 articles published

KnowledgeHut is an outcome-focused global ed-tech company. We help organizations and professionals unlock excellence through skills development. We offer training solutions under the people and proces...

Get Free Consultation

+91

By submitting, I accept the T&C and
Privacy Policy