Table Functions () | Power BI || Belayet Hossain
Belayet Hossain ??
Power BI Developer @ZnZ | Data Analyst | SQL, Python, ETL, DBMS, DAX | Find insight & Making Decision|| Ex-Head of Quality Dept & 09 Y With smartphone Manufacturing & Service | Ex- RFL, VIVO, Symphony || EEE
In Power BI, table functions are DAX functions that return a table as their output rather than a single value. These functions are often used in conjunction with other DAX functions to perform operations on tables, filter data, or summarize data.
They play a crucial role in defining relationships, creating calculated tables, and shaping the data before visualization.
|
Let's break down the table functions in Power BI with examples for each function in an easy-to-follow structure:
?? 1. VALUES()
Example:
DAX: ????????????(????????????[??????????????])
??2. DISTINCT()
Example:
DAX: ????????????????(????????????[??????????????])
??3. ALL()
Example:
DAX: ??????(????????????[??????????????])
??4. SUMMARIZECOLUMNS()
Example:
DAX: ????????????????????????????????(????????????[??????????????], "??????????????????????????", ??????(????????????[????????????????]))
??5. ADDCOLUMNS()
Example:
DAX: ????????????????????(????????????, "????????????????????", ????????????[????????????????] * 10)
??6. SELECTCOLUMNS()
Example:
DAX: SELECTCOLUMNS(Orders, "Product", Orders[Product], "Quantity", Orders[Quantity])
??7. TOPN()
领英推荐
Example:
DAX: TOPN(1, Orders, Orders[Quantity], DESC)
??8. CROSSJOIN()
Example:
DAX: CROSSJOIN(Products, Quantities)
??9. GENERATESERIES()
Example:
DAX: GENERATESERIES(1, 5, 1)
??10. RANKX()
Example: RANKX(Table, Expression)
DAX: RANKX(Orders, Orders[Quantity])
??11. LOOKUPVALUE()
Example: LOOKUPVALUE(Table[Return_Column], Table[Search_Column], Value)
DAX: LOOKUPVALUE(Prices[Price], Prices[Product], "Apple")
??12. CONCATENATEX()
Example:
DAX: CONCATENATEX(Orders, Orders[Product], ", ")
??Table Functions and Context:
??Practical Scenarios:
#tablefunction #powerbi