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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have a table with order items. I need to calculate the order quantity with 1, 2, 3 ... items per order.
ex.
With 1 item = 20 orders
With 2 items = 15 orders
I have a column with the order number and another column with the item number in the order.
i tried this but it didnt work
Solved! Go to Solution.
Hi @Rfranca,
Please change your formula as below.
Numberoforders = Distinctcount(venda_item_geral[id_Vendeachane])
If that doesn't meet your requirement, kindly share your pbix to me.
Regards,
Frank
Hi @Rfranca
Try this:
1. Place a matrix visual in your report
2. Place the 'item numbers' column in the rows of the matrix
3. Place this measure in the values of the matrix:
NumberOfOrders = DISTINCTCOUNT(Table1[OrderNumberColumn])
Hi @Rfranca,
Please change your formula as below.
Numberoforders = Distinctcount(venda_item_geral[id_Vendeachane])
If that doesn't meet your requirement, kindly share your pbix to me.
Regards,
Frank
Hi @Rfranca,
Does that make sense? If so, kindly mark my answer as a solution to close the case.
Regards,
Frank
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 51 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |