Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |