Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iankitnegi/daxterity
DAXterity is a repository dedicated to practicing and mastering DAX, the formula language used in Power BI for data modeling and calculations. This repository aims to provide a structured environment for learning and experimenting with commonly used DAX functions and patterns.
https://github.com/iankitnegi/daxterity
dax powerbi
Last synced: 13 days ago
JSON representation
DAXterity is a repository dedicated to practicing and mastering DAX, the formula language used in Power BI for data modeling and calculations. This repository aims to provide a structured environment for learning and experimenting with commonly used DAX functions and patterns.
- Host: GitHub
- URL: https://github.com/iankitnegi/daxterity
- Owner: iankitnegi
- Created: 2024-05-25T19:36:42.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-09-11T17:51:14.000Z (4 months ago)
- Last Synced: 2024-09-12T03:50:46.233Z (4 months ago)
- Topics: dax, powerbi
- Homepage:
- Size: 2.78 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DAXterity
DAXterity is a repository dedicated to practicing and mastering DAX, the formula language used in Power BI for data modeling and calculations. This repository aims to provide a structured environment for learning and experimenting with commonly used DAX functions and patterns.> _**80/20 rule, also known as the Pareto Principle, often applies to DAX functions in Power BI. It suggests that 80% of your results can be achieved with just 20% of the functions.**_
### Frequently Used DAX Functions
This document provides a categorized list of commonly used DAX functions in Power BI. Use this as a quick reference to improve your data analysis and reporting capabilities.| Filter | Maths & Stats | Date & Time | Text | Logical | Window |
|:------------------------------------------:|:-----------------------------:|:-------------------------------------------:|:-------------------------------:|:----------------------:|:--------------------:|
| CALCULATE | SUM / SUMX | DATEDIFF | CONCATENATE | IF | WINDOW |
| FILTER | AVERAGE / AVERAGEX | DATEADD / SAMEPERIODLASTYEAR | SEARCH / FIND | IFERROR | INDEX |
| ALL / ALLEXCEPT / ALLSELECTED | MAX / MAXX | TODAY / NOW | FORMAT | COALESCE | OFFSET |
| REMOVEFILTER | MIN / MINX | TOTALYTD / TOTALQTD / TOTALMTD | UNICHAR | OR | |
| RELATED / RELATEDTABLE / LOOKUPVALUE | DIVIDE | DATESYTD / DATESQTD / DATESMTD | LEFT / MID / RIGHT | AND | |
| DISTINCT / VALUES | COUNT / COUNTA | DATESINPERIOD | REPLACE / SUBSTITUTE | NOT | |
| EARLIER / EARLIEST | COUNTROWS / DISTINCTCOUNT | DATESBETWEEN | UPPER / LOWER / PROPER | SWITCH | |
| HASONEVALUE / HASONEFILTER / ISFILTERED | COUNTX | YEAR / MONTH / DAY | LEN | TRUE | |
| SELECTEDVALUE | RANKX | PARALLELPERIOD | TRIM | FALSE | |
| USERELATIONSHIP | | | REPT | | |
| SUMMARIZE | | | | | |### Logical:
- IF(, , [])
- IFERROR (<_value>, )
- COALESCE(<_expression>, <_expression>…)
- OR(logical1, logical2)
- AND(logical1, logical2)
- NOT(<_logical>)
- SWITCH(<_expression>, <_value>, <_result>[, <_value>, <_result>]…[, <_else>])
- TRUE()
- FALSE()### Maths & Stats:
- SUM(<_Column>) / SUMX(<_table>, <_expression>)
- AVERAGE(<_Column>) / AVERAGEX(<_table>,<_expression>)
- MAX(<_Column>) / MAXX(tablename, expression)
- MIN() / MINX(tablename, expression)
- DIVIDE ( <_Numerator>, <_Denominator> [, <_AlternateResult>] )
- COUNT(<_column>) / COUNTA(<_column>)
- COUNTROWS(<_table>) / DISTINCTCOUNT(<_column>)
- COUNTAX(<_table>,<_expression>)
- RANKX ( <_Table>, <_Expression> [, <_Value>] [, <_Order>] [, <_Ties>] )### Extras:
- CALENDAR(Start, End) : Returns a table with a single column named “Date” that contains a contiguous set of dates.
- DATE(YYYY, MM, DD) : Returns the specified date in datetime format.
- MONTH(Date) : Returns the month as a number from 1 (January) to 12 (December).
- WEEKDAY(Date, Return: 1,2,3) : Returns a number from 1 to 7 identifying the day of the week of a date.
- WEEKNUM(Date, Return: 1,11,12,13..) : Returns the week number for the given date and year according to the return_type value.
- FORMAT(Value, Format_string, Locale_name) : It allows you to change the way numbers/dates are displayed visually without altering their original values.
- CALCULATETABLE()
- TOTALMTD()
- TOTALQTD()
- TOTALYTD()
- SAMEPERIODLASTYEAR()