Dax Functions
Dax Functions
Domain-Specific Notes:
- Sales & Marketing: Focus on time intelligence, aggregation, and filter functions to analyze trends,
performance metrics, and customer segmentation.
- Operations: Utilize aggregation, logical, and table functions for supply chain management, resource
allocation, and operational efficiency analysis.
- HR Analytics: Use filter, logical, and text functions to segment employee data, analyze performance
metrics, and calculate retention rates.
1. Time Intelligence
2. Aggregation
5. Text Functions
- IF: Perform a logical test and return one value if true, another if false.
- SWITCH: Evaluate an expression against a list of values and return the corresponding result.
7. Table Functions
- SUMMARIZE: Create a summary table for the requested totals over a set of groups.
- YEAR, MONTH, DAY: Extract the year, month, or day from a date.
- HOUR, MINUTE, SECOND: Extract the hour, minute, or second from a time.
- EDATE: Return the date that is the specified number of months before or after a date.
9. Financial
- XIRR: Return the internal rate of return for a series of cash flows.
- XNPV: Return the net present value for a series of cash flows.
- PMT: Calculate the payment for a loan based on constant payments and interest rates.
10. Geospatial
- SAMEPERIODLASTYEAR: Compares current period sales to the same period in the previous year.
2. Finance
- CALCULATE: Applies custom filter contexts for financial metrics like profit, loss, or revenue.
- XIRR: Calculates the internal rate of return for irregular cash flows.
- EOMONTH: Returns the end of the month for financial period calculations.
3. Operations
- CALCULATE: Adjusts filter contexts to evaluate metrics like order fulfillment or machine efficiency.
- AVERAGEX: Computes averages for operational metrics like lead times or machine utilization.
- ALL: Removes filters to calculate overall operational metrics like total production output.
- EARLIER: References previous rows for sequential calculations like lead time analysis.
- MAXX: Returns the maximum value from a table for metrics like delivery time.
- DATESBETWEEN: Returns dates between specified start and end dates for tenure analysis.
- CONTAINS: Checks if a table contains specific values, useful for filtering employee records.
- NORM.S.DIST: Returns the standard normal distribution for calculating standardized scores.
- ALLSELECTED: Removes filters from the selected context for interactive dashboards.