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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Pablo_ace
Regular Visitor

Filtrar

Hola! Dejo este ejemplo: en este sistema de ventas, tengo 9 productos vendidos (Row ID) en 4 ventas realizadas (hay solo 4 Order ID distintos, ya que hay órdenes de múltiples productos). Necesito identificar la cantidad de ventas (órdenes) realizadas (en un archivo de 9800 productos vendidos) 

Row ID (Enumeración de productos vendidos)Order ID (ID de la venta)
1CA-2017-152156
2CA-2017-152156
3CA-2017-138688
4US-2016-108966
5US-2016-108966
6CA-2015-115812
7CA-2015-115812
8CA-2015-115812
9CA-2015-115812
2 ACCEPTED SOLUTIONS
Irwan
Super User
Super User

hello @Pablo_ace 

 

i might be misunderstood your need since i used google translate.

 

if you need to count order id, you can use measure with DISTINCTCOUNT().

it will check all unique value in 'Order ID" column.

Irwan_0-1729983230114.png

 

Another way is using SUMMARIZE() or SUMMARIZECOLUMN() if you can create new table.

 

Hope this will help.

Thank you.

View solution in original post

Anonymous
Not applicable

Hi @Pablo_ace 

 

If you want to calculate the number of sales orders, you can follow Irwan's reply using DISTINCTCOUNT().
If you want to calculate the number of products sold in each sales order, you can use COUNTROWS(). Like the following:

Number = COUNTROWS('Table')

vxianjtanmsft_0-1730099465408.png

 

Please correct me if I'm misunderstanding your needs.

 

Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Pablo_ace 

 

If you want to calculate the number of sales orders, you can follow Irwan's reply using DISTINCTCOUNT().
If you want to calculate the number of products sold in each sales order, you can use COUNTROWS(). Like the following:

Number = COUNTROWS('Table')

vxianjtanmsft_0-1730099465408.png

 

Please correct me if I'm misunderstanding your needs.

 

Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Irwan
Super User
Super User

hello @Pablo_ace 

 

i might be misunderstood your need since i used google translate.

 

if you need to count order id, you can use measure with DISTINCTCOUNT().

it will check all unique value in 'Order ID" column.

Irwan_0-1729983230114.png

 

Another way is using SUMMARIZE() or SUMMARIZECOLUMN() if you can create new table.

 

Hope this will help.

Thank you.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.