TGViewer
Data Analytics & AI | SQL Interviews | Power BI Resources Data Analytics & AI | SQL Interviews | Power BI Resources @data_visual · 27.5K subscribers
Post #601 678
10 DAX Functions Every Power BI Learner Should Know!



1. SUM
   Scenario: Calculate the total sales amount.
   DAX Formula: Total Sales = SUM(Sales[SalesAmount])

2. AVERAGE
   Scenario: Find the average sales per transaction.
   DAX Formula: Average Sales = AVERAGE(Sales[SalesAmount])

3. COUNTROWS
   Scenario: Count the number of transactions.
   DAX Formula: Transaction Count = COUNTROWS(Sales)

4. DISTINCTCOUNT
   Scenario: Count the number of unique customers.
   DAX Formula: Unique Customers = DISTINCTCOUNT(Sales[CustomerID])

5. CALCULATE
   Scenario: Calculate the total sales for a specific product category.
   DAX Formula: Total Sales (Category) = CALCULATE(SUM(Sales[SalesAmount]), Products[Category] = "Electronics")

6. FILTER
   Scenario: Calculate the total sales for transactions above a certain amount.
   DAX Formula: High Value Sales = CALCULATE(SUM(Sales[SalesAmount]), FILTER(Sales, Sales[SalesAmount] > 1000))

7. IF
   Scenario: Create a calculated column to categorize transactions as "High" or "Low" based on sales amount.
   DAX Formula: Transaction Category = IF(Sales[SalesAmount] > 500, "High", "Low")

8. RELATED
   Scenario: Fetch product names from the Products table into the Sales table.
   DAX Formula: Product Name = RELATED(Products[ProductName])

9. YEAR
   Scenario: Extract the year from the transaction date.
   DAX Formula: Transaction Year = YEAR(Sales[TransactionDate])

10. DATESYTD
    Scenario: Calculate year-to-date sales.
    DAX Formula: YTD Sales = TOTALYTD(SUM(Sales[SalesAmount]), Sales[TransactionDate])

I have curated the best interview resources to crack Power BI Interviews 👇👇
https://whatsapp.com/channel/0029Vai1xKf1dAvuk6s1v22c

Hope you'll like it

Like this post if you need more resources like this 👍❤️
  • ❤ 1
More from @data_visual
  1. Oct 2, 2026Data Analyst Roadmap
  2. Sep 28, 2026🎯 GigaChat 3.5 Reasoning: 5 Key Features 1️⃣ Advanced Reasoning: Explores multiple step-b…
  3. Sep 23, 2026🚀 The 10 Levels of AI Agents — Where We Stand Today AI isn’t a single goal — it’s an evol…
  4. Sep 14, 2026AI tools to increase your productivity in 2026 👇 1/ Granola: AI meeting notes that captur…
  5. Sep 6, 2026Data Analyst interviews will be easier if you learn these tools in sequence: ➤ 𝗗𝗮𝘁𝗮 𝗙…
  6. Aug 29, 2026SQL Joins — A Practical Cheatsheet for Professionals If you’re working with relational dat…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →