https://github.com/samridhisainii/dax-command
This includes all essential DAX (Data Analysis Expressions) functions used for creating measures, columns and tables. It also provides the full names and explanations of DAX functions
https://github.com/samridhisainii/dax-command
dax measures powerbi
Last synced: 3 months ago
JSON representation
This includes all essential DAX (Data Analysis Expressions) functions used for creating measures, columns and tables. It also provides the full names and explanations of DAX functions
- Host: GitHub
- URL: https://github.com/samridhisainii/dax-command
- Owner: SAMRIDHISAINII
- Created: 2024-07-30T20:38:17.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-30T20:45:16.000Z (almost 2 years ago)
- Last Synced: 2025-01-28T09:49:04.727Z (over 1 year ago)
- Topics: dax, measures, powerbi
- Homepage:
- Size: 1.09 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dax-Command
### Power BI
**Power BI** is a business analytics service provided by Microsoft that enables users to visualize and analyze data with greater speed, efficiency, and understanding. It provides tools for aggregating, analyzing, visualizing, and sharing data. Power BI's capabilities include:
- **Data Integration:** Combine data from various sources, including databases, web services, and files.
- **Data Transformation:** Clean, reshape, and transform data to prepare it for analysis.
- **Data Visualization:** Create interactive reports and dashboards with various visualization types like charts, graphs, maps, and tables.
- **Real-Time Analytics:** Monitor data in real time and get instant insights.
- **Collaboration:** Share reports and dashboards with others and collaborate on data-driven decisions.
- **Accessibility:** Access data and reports on multiple devices, including desktops, tablets, and smartphones.
### Data Analysis Expressions (DAX)
**Data Analysis Expressions (DAX)** is a formula language used in Power BI, Power Pivot, and Analysis Services. DAX is designed to work with relational data and perform complex calculations and aggregations.
Here are some commonly used DAX functions along with their formats:
| **Category** | **Formula** | **Description** | **Format** |
|--------------------------|--------------------|-------------------------------------------------------------------------------------------------------|----------------------------------------------|
| **Aggregation** | `SUM` | Adds all the numbers in a column. | `SUM()` |
| | `AVERAGE` | Returns the average of the numbers in a column. | `AVERAGE()` |
| | `COUNT` | Counts the number of values in a column. | `COUNT()` |
| | `MAX` | Returns the largest value in a column. | `MAX()` |
| | `MIN` | Returns the smallest value in a column. | `MIN()` |
| **Logical** | `IF` | Checks a condition and returns one value if true and another if false. | `IF(, , )` |
| | `AND` | Checks if all arguments are true, returns true if all are true. | `AND(, , ...)` |
| | `OR` | Checks if any arguments are true, returns true if any are true. | `OR(, , ...)` |
| | `NOT` | Changes false to true or true to false. | `NOT()` |
| **Date and Time** | `TODAY` | Returns the current date. | `TODAY()` |
| | `NOW` | Returns the current date and time. | `NOW()` |
| | `YEAR` | Returns the year of a date. | `YEAR()` |
| | `MONTH` | Returns the month of a date. | `MONTH()` |
| | `DAY` | Returns the day of a date. | `DAY()` |
| | `DATE` | Returns the specified date in datetime format. | `DATE(, , )` |
| **Text** | `CONCATENATE` | Joins two or more text strings into one. | `CONCATENATE(, )` |
| | `LEFT` | Returns the specified number of characters from the start of a text string. | `LEFT(, )` |
| | `RIGHT` | Returns the specified number of characters from the end of a text string. | `RIGHT(, )` |
| | `MID` | Returns a specific number of characters from a text string starting at the position you specify. | `MID(, , )` |
| | `LEN` | Returns the number of characters in a text string. | `LEN()` |
| **Mathematical** | `ABS` | Returns the absolute value of a number. | `ABS()` |
| | `ROUND` | Rounds a number to the specified number of digits. | `ROUND(, )` |
| | `CEILING` | Rounds a number up to the nearest integer or to the nearest multiple of significance. | `CEILING(, )` |
| | `FLOOR` | Rounds a number down to the nearest integer or to the nearest multiple of significance. | `FLOOR(, )` |
| **Statistical** | `MEDIAN` | Returns the median of the numbers in a column. | `MEDIAN()` |
| | `VAR` | Returns the variance of the numbers in a column. | `VAR()` |
| | `STDEV` | Returns the standard deviation of the numbers in a column. | `STDEV()` |
| **Filter** | `FILTER` | Returns a table that represents a subset of another table or expression. | `FILTER(, )` |
| | `ALL` | Returns all the rows in a table or all the values in a column, ignoring any filters that might have been applied. | `ALL( or )` |
| | `CALCULATE` | Evaluates an expression in a context modified by the specified filters. | `CALCULATE(, , , ...)` |
| | `RELATED` | Returns a related value from another table. | `RELATED()` |
| | `EARLIER` | Returns the current value of the specified column in an outer evaluation pass of the row context. | `EARLIER(, )` |
| **Time Intelligence** | `DATESYTD` | Returns a table that contains a column of the dates for the year to date, given a column of dates. | `DATESYTD()` |
| | `TOTALYTD` | Evaluates the year-to-date value of the expression in the current context. | `TOTALYTD(, )` |
| | `SAMEPERIODLASTYEAR` | Returns a table that contains a column of dates shifted one year back in time from the dates in the specified column. | `SAMEPERIODLASTYEAR()` |
| | `PARALLELPERIOD` | Returns a table that contains a column of dates shifted by the specified number of intervals. | `PARALLELPERIOD(, , )` |
| | `PREVIOUSMONTH` | Returns a table that contains a column of all the dates in the previous month. | `PREVIOUSMONTH()` |