Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Solved! Go to Solution.
Hi @Anonymous
Please try
Classify by Customer SalesDocType =
VAR T1 =
GROUPBY (
customer_mapping_tbl,
customer_mapping_tbl[SoldToParty],
customer_mapping_tbl[SalesDocType],
customer_mapping_tbl[Order Acquisition Classification]
)
VAR T2 =
FILTER (
T1,
customer_mapping_tbl[SoldToParty] = sales_document_header_data_tbl[SoldToParty]
&& customer_mapping_tbl[SalesDocType] = sales_document_header_data_tbl[SalesDocType]
)
RETURN
MAXX ( T2, customer_mapping_tbl[Order Acquisition Classification] )
Hi @Anonymous
Please try
Classify by Customer SalesDocType =
VAR T1 =
GROUPBY (
customer_mapping_tbl,
customer_mapping_tbl[SoldToParty],
customer_mapping_tbl[SalesDocType],
customer_mapping_tbl[Order Acquisition Classification]
)
VAR T2 =
FILTER (
T1,
customer_mapping_tbl[SoldToParty] = sales_document_header_data_tbl[SoldToParty]
&& customer_mapping_tbl[SalesDocType] = sales_document_header_data_tbl[SalesDocType]
)
RETURN
MAXX ( T2, customer_mapping_tbl[Order Acquisition Classification] )
Ahhh that's awesome! Thank you!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 30 | |
| 26 | |
| 17 | |
| 11 | |
| 10 |