Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Rfranca
Resolver IV
Resolver IV

Items per orders

 

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

 

Clipboard01.png

1 ACCEPTED 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

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

4 REPLIES 4
AlB
Community Champion
Community Champion

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])

 

 

Clipboard01.png

 
did not work!

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

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @Rfranca,

 

Does that make sense? If so, kindly mark my answer as a solution to close the case.

 

Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.