Headder AdSence

Power BI DAX for Beginners: 10 Essential Formulas You Should Know

 

🔟 Top 10 DAX Formulas (with examples):

FormulaPurposeExample
SUM()Adds up column valuesSUM(Sales[Amount])
AVERAGE()Mean valueAVERAGE(Orders[Quantity])
COUNTROWS()Count of rows in tableCOUNTROWS(Customers)
CALCULATE()Applies filtersCALCULATE(SUM(Sales[Amount]), Region = "West")
FILTER()Returns filtered tableFILTER(Orders, Orders[Quantity] > 10)
IF()Logical conditionIF(Sales[Amount] > 1000, "High", "Low")
RELATED()Bring in data from related tablesRELATED(Product[Category])
ALL()Remove filtersCALCULATE(SUM(Sales[Amount]), ALL(Sales))
RANKX()Rank rowsRANKX(ALL(Sales), Sales[Amount])
DISTINCTCOUNT()Unique values countDISTINCTCOUNT(Customers[CustomerID])

💡 Pro Tips:

  • Use CALCULATE with filters to unlock advanced DAX logic

  • Combine RANKX + FILTER for custom leaderboards

  • ALL and ALLEXCEPT are key for ignoring/reporting filters

📌 Conclusion:

  • DAX is powerful, learn the logic behind each formula

  • Next step: build a mini dashboard using these formulas

No comments:

Post a Comment