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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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]
)
)
User | Count |
---|---|
14 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |