Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi! Most likely a stupid question..Anyways, here we go
So I'm trying to calculate the total pick and pack cost per product. There is a base rate per order, however I want to allocate the order cost equally per order row/product.
See below picture. In this example I want order rows to say 3 on each line level in order for me to then allocate correctly.
I tried calculating it like this
Solved! Go to Solution.
@Anonymous Maybe:
Order rows =
VAR __id = MAX('Sales'[order_id])
VAR __skus = FILTER(ALLSELECTED('Sales'),[variant_sku] <> BLANK() && [order_id] = __id)
RETURN
COUNTROWS(__skus)
@Anonymous Maybe:
Order rows =
VAR __id = MAX('Sales'[order_id])
VAR __skus = FILTER(ALLSELECTED('Sales'),[variant_sku] <> BLANK() && [order_id] = __id)
RETURN
COUNTROWS(__skus)
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 19 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 37 | |
| 31 | |
| 27 |