Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Soy nuevo en Power Bi y estoy tratando de crear una fórmula que devuelva un número de equipo si:
- un número de equipo en la columna Equipo aparece más de una vez Y
- al menos una línea de los números de equipo coincidentes en la columna Ubicación tiene "Sala de exposición" o "Capacitación" Y
- al menos una línea de los números de equipo coincidentes en la columna Fecha de Invoice tiene una fecha Y
- al menos una línea de los números de equipo coincidentes en la columna Tipo de pedido tiene la palabra clave "Venta"
Solved! Go to Solution.
Hay @Antje ,
Cree una columna personalizada con el siguiente código y úsela como filtro en su objeto visual:
Column =
VAR _count =
COUNTROWS (
FILTER (
'Table (5)',
'Table (5)'[Eqipment] = EARLIER ( 'Table (5)'[Eqipment] )
)
)
VAR _location =
COUNTROWS (
FILTER (
'Table (5)',
'Table (5)'[Eqipment] = EARLIER ( 'Table (5)'[Eqipment] )
&& 'Table (5)'[Location] IN { "Showroom", "Location" }
)
)
VAR _invoice_Date =
COUNTROWS (
FILTER (
'Table (5)',
'Table (5)'[Eqipment] = EARLIER ( 'Table (5)'[Eqipment] )
&& 'Table (5)'[Invoice date] <> BLANK ()
)
)
VAR _ordertype =
COUNTROWS (
FILTER (
'Table (5)',
'Table (5)'[Eqipment] = EARLIER ( 'Table (5)'[Eqipment] )
&& 'Table (5)'[Order type] IN { "Sale" }
)
)
RETURN
IF (
_count >= 2
&& _location >= 1
&& _invoice_Date >= 1
&& _ordertype >= 1,
1,
0
)
salida:-
Gracias
Samarth
¡Muchas gracias, Samarth! Esto funcionó perfectamente.
Hay @Antje ,
Cree una columna personalizada con el siguiente código y úsela como filtro en su objeto visual:
Column =
VAR _count =
COUNTROWS (
FILTER (
'Table (5)',
'Table (5)'[Eqipment] = EARLIER ( 'Table (5)'[Eqipment] )
)
)
VAR _location =
COUNTROWS (
FILTER (
'Table (5)',
'Table (5)'[Eqipment] = EARLIER ( 'Table (5)'[Eqipment] )
&& 'Table (5)'[Location] IN { "Showroom", "Location" }
)
)
VAR _invoice_Date =
COUNTROWS (
FILTER (
'Table (5)',
'Table (5)'[Eqipment] = EARLIER ( 'Table (5)'[Eqipment] )
&& 'Table (5)'[Invoice date] <> BLANK ()
)
)
VAR _ordertype =
COUNTROWS (
FILTER (
'Table (5)',
'Table (5)'[Eqipment] = EARLIER ( 'Table (5)'[Eqipment] )
&& 'Table (5)'[Order type] IN { "Sale" }
)
)
RETURN
IF (
_count >= 2
&& _location >= 1
&& _invoice_Date >= 1
&& _ordertype >= 1,
1,
0
)
salida:-
Gracias
Samarth
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.