Skip to main content

DAX Functions

These are just some of the many DAX functions available in Power BI. Each  function serves a specific purpose and can be used to perform a wide range of calculations and transformations on your data.




Aggregation Functions:

  1. SUM: Calculates the sum of values.
  2. AVERAGE: Calculates the arithmetic mean of values.
  3. MIN: Returns the smallest value in a column.
  4. MAX: Returns the largest value in a column.
  5. COUNT: Counts the number of rows in a table or column.
  6. COUNTA: Counts the number of non-blank values in a column.
  7. DISTINCTCOUNT: Counts the number of unique values in a column.

Logical Functions:

  1. IF: Returns one value if a condition is true and another value if it's false.
  2. AND: Returns TRUE if all the conditions are true, otherwise FALSE.
  3. OR: Returns TRUE if any of the conditions are true, otherwise FALSE.
  4. NOT: Returns the opposite of a logical value.

Text Functions:

  1. CONCATENATE: Concatenates strings together.
  2. LEFT: Returns the leftmost characters from a text string.
  3. RIGHT: Returns the rightmost characters from a text string.
  4. LEN: Returns the length of a text string.
  5. LOWER: Converts text to lowercase.
  6. UPPER: Converts text to uppercase.

Date and Time Functions:

  1. DATE: Creates a date value from the year, month, and day.
  2. YEAR: Returns the year portion of a date.
  3. MONTH: Returns the month portion of a date.
  4. DAY: Returns the day portion of a date.
  5. TODAY: Returns the current date.
  6. NOW: Returns the current date and time.
  7. DATEADD/DATEDIFF: Adds or subtracts a specified number of units from a date.

Relationship Functions:

  1. RELATED: Retrieves related values from a related table.
  2. RELATEDTABLE: Returns a table that contains related records from a related table.

Table Functions:

  1. FILTER: Filters a table based on specified conditions.
  2. ALL: Returns all the rows in a table, or all the values in a column, ignoring any filters.
  3. VALUES: Returns a single-column table that contains the distinct values from a column.

Statistical Functions:

  1. MEDIAN: Returns the median value from a set of numbers.
  2. STDEV: Returns the standard deviation of a set of numbers.
  3. VAR: Returns the variance of a set of numbers.

Information Functions:

Financial Functions:

Comments

Popular posts from this blog

TechUplift: Elevating Your Expertise in Every Click

  Unlock the potential of data with SQL Fundamental: Master querying, managing, and manipulating databases effortlessly. Empower your database mastery with PL/SQL: Unleash the full potential of Oracle databases through advanced programming and optimization. Unlock the Potential of Programming for Innovation and Efficiency.  Transform raw data into actionable insights effortlessly. Empower Your Data Strategy with Power Dataware: Unleash the Potential of Data for Strategic Insights and Decision Making.

SQL Fundamentals

SQL, or Structured Query Language, is the go-to language for managing relational databases. It allows users to interact with databases to retrieve, manipulate, and control data efficiently. SQL provides a standardized way to define database structures, perform data operations, and ensure data integrity. From querying data to managing access and transactions, SQL is a fundamental tool for anyone working with databases. 1. Basics of SQL Introduction : SQL (Structured Query Language) is used for managing and manipulating relational databases. SQL Syntax : Basic structure of SQL statements (e.g., SELECT, INSERT, UPDATE, DELETE). Data Types : Different types of data that can be stored (e.g., INTEGER, VARCHAR, DATE). 2. SQL Commands DDL (Data Definition Language) : CREATE TABLE : Define new tables. ALTER TABLE : Modify existing tables. DROP TABLE : Delete tables. DML (Data Manipulation Language) : INSERT : Add new records. UPDATE : Modify existing records. DELETE : Remove records. DQL (Da

Python Topics

Learning Python can be an exciting and rewarding journey, especially given its versatility and widespread use in various fields like web development, data science, automation, and more. Here's a structured guide to help you learn Python effectively, covering essential topics from beginner to advanced levels. Beginner Level Introduction to Python Installation and setup Python syntax and interactive shell Writing and running your first Python script Basic Concepts Variables and data types (integers, floats, strings, booleans) Basic arithmetic operations String operation Comments and documentation Control Structures Conditional statements ( if ,  elif ,  else ) Loops ( for ,  while ) Data Structures Lists Tuples Dictionaries Sets Functions Defining and calling functions Function arguments and return values Lambda functions Built-in functions Modules and Packages Importing modules Standard library overview (e.g.,  math ,  datetime ,  random ) Installing and using external packages