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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi community!
I have a simple table with this structure:
Order | Article | Value |
100 | A | 4 |
100 | B | 5 |
100 | C | 6 |
101 | A | 5 |
Now I would like to add an additonal column the shows me per Order the number of articles.
But how?
Solved! Go to Solution.
[# Articles] = // calc column
var OrderId = T[OrderId]
return
COUNTROWS(
SUMMARIZE(
FILTER(
T, // name of the table
T[Order] = OrderId
),
T[Article]
)
)
[# Articles] = // calc column
var OrderId = T[OrderId]
return
COUNTROWS(
SUMMARIZE(
FILTER(
T, // name of the table
T[Order] = OrderId
),
T[Article]
)
)