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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Pablo_ace
Regular Visitor

Filtrar órdenes

Buenas! Tengo una consulta respecto de cómo resolver lo siguiente: estoy trabajando sobre un sistema de ventas en el que necesito identificar la cantidad de ventas (o pedidos) realizados. Tengo una columna "Row ID", que es el contador de los productos vendidos, y otra como "Order ID", asociando un número de orden. Lo que necesito es saber cuántos pedidos se hicieron.image.png

1 ACCEPTED SOLUTION

COUNTROWS(VALUES([Order ID]))

 

Or use the implicit measure "Count (Distinct)"  on the Order ID column.

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information. Do not include anything that is unrelated to the issue or question.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

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). Yo necesito identificar la cantidad de ventas 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
  

COUNTROWS(VALUES([Order ID]))

 

Or use the implicit measure "Count (Distinct)"  on the Order ID column.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.