DAX

Power-bi-dax-tutorials

Difference Between ACCRINT and ACCRINTM Functions in Power BI DAX

When working with financial data in Power BI, especially for investments like bonds, treasury bills, or securities that pay interest, analysts often need to calculate accrued interest. Power BIโ€™s DAX (Data Analysis Expressions) language provides powerful functions for financial analysis, including ACCRINT and ACCRINTM. Although both functions deal with accrued interest, they are used in …

Difference Between ACCRINT and ACCRINTM Functions in Power BI DAX Read More »

AVERAGE vs AVERAGEX DAX Function Difference with Example

Here is the the difference between AVERAGE vs AVERAGEX with a realistic example using your Hospital Patient Treatment Dataset (which includes patients, doctors, recovery scores, treatment cost, etc.). โ“ Question: What is the average of the average recovery score per doctor? ๐Ÿ” Why This Matters: Here is the dataset snapshot โœ… DAX Using AVERAGEX (Correct …

AVERAGE vs AVERAGEX DAX Function Difference with Example Read More »

Top โ€œThis vs Thatโ€ DAX Function Comparisons

Here are Top โ€œThis vs Thatโ€ DAX Function Comparisons with explanation Topic Function 1 Function 2 Key Difference 1. Standard Deviation STDEV.S STDEV.P Sample vs Population (n-1 vs n) 2. SUM vs SUMX SUM() SUMX() Simple aggregation vs row-by-row evaluation 3. AVERAGE vs AVERAGEX AVERAGE() AVERAGEX() Aggregation vs iteration over rows 4. CALCULATE vs CALCULATETABLE …

Top โ€œThis vs Thatโ€ DAX Function Comparisons Read More »

stdev.p and stdev.s dax example

Difference between STDEV.S and STDEV.P in DAX with Example

๐ŸŽฏ Objective Show the difference between STDEV.S() and STDEV.P() DAX functions using real-world data from the Sample Superstore dataset (e.g., Orders table). ๐Ÿ“Œ Quick Definitions Function Meaning Divisor Used When to Use STDEV.S() Sample Standard Deviation Divides by n – 1 Use when data is a sample of the population STDEV.P() Population Standard Deviation Divides …

Difference between STDEV.S and STDEV.P in DAX with Example Read More »

FIRSTDATE() in Power BI DAX โ€“ Description & Example

๐Ÿ” What it does: FIRSTDATE() returns the first (earliest) date in the current filter context from a column of dates. ๐Ÿงฎ Syntax: โœ… Example: This returns the earliest date where data exists based on the current filters (e.g., per region, product, month, etc.). ๐Ÿง  Used with CALCULATE: Example: Get sales on the first date of …

FIRSTDATE() in Power BI DAX โ€“ Description & Example Read More »

PARALLELPERIOD() in Power BI DAX

Here’s a short description and example of PARALLELPERIOD() in Power BI DAX: ๐Ÿ” What it does: PARALLELPERIOD() shifts the dates in the current context by a specified number of intervals (month, quarter, or year) โ€” but keeps the same length of period. ๐Ÿงฎ Syntax: ๐Ÿงฎ Example: Previous Year Sales ๐Ÿ“Š How it works: Year Month …

PARALLELPERIOD() in Power BI DAX Read More »

Most important 50 DAX functions

Here’s a curated list of the 50 most important DAX functions โ€” grouped by category โ€” that every Power BI Developer should know for interviews, certifications, and real-world use. ๐Ÿ“… Date & Time Functions โณ Time Intelligence Functions ๐Ÿ”ข Math & Aggregation Functions ๐Ÿง  Logical & Conditional Functions ๐Ÿ“Š Filter Functions ๐Ÿ”— Relationship & Table …

Most important 50 DAX functions Read More »

ProductX DAX Function in Power BI

In DAX (Data Analysis Expressions), the PRODUCTX function multiplies all the values of a given expression evaluated over a table. Syntax of PRODUCTX: PRODUCTX(table, expression) table: The table to iterate over. expression: The expression to evaluate and multiply across each row. ๐ŸŽฏ Use Case: Calculating Compound Growth (Multiplicative Change) Letโ€™s say we have a table …

ProductX DAX Function in Power BI Read More »

What is a Disconnected Parameter Table? and How to Create in Power BI?

What is a Disconnected Parameter Table? A disconnected parameter table (often created using a “What-If parameter” in Power BI Desktop) is a special kind of table that is not directly related to your main data model tables (like your Sales table). Its primary purpose is to provide a slicer or filter that a user can …

What is a Disconnected Parameter Table? and How to Create in Power BI? Read More »

Financial dataset, along with 5 advanced DAX questions & solutions

1. Slidescope Sample Financial Dataset (100 Rows) We’ll use a dataset representing sales transactions. This dataset includes information about Date, Product Category, Product Name, Sales Amount, Quantity, Customer Segment, and Region. Table Name: Sales Date Product Category Product Name Sales Amount Quantity Customer Segment Region Order ID 2024-01-05 Electronics Laptop X 1200 1 Consumer North …

Financial dataset, along with 5 advanced DAX questions & solutions Read More »