Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hola, por favor su ayuda para realizar la siguiente busqueda de acuerdo un producto, la cantidad ( en un rango ) y el descuento que debe entregarme, lo he intentado pero no logro dar con la formula DAX.
Son tablas : Registros y Productos
Registros
Productos
Debe reflejarse el descuento en la primera tabla , segun la cantidad entre el rango establecido.
Muchas gracias por las respuesta, esto me ha quitado el sueño ya varias noches ....
Solved! Go to Solution.
@fav_ccc2021 , Create a new column in the table 1
maxx(filter(Table2, Table2[Producto] = table1[Producto] && Table2[cantidad Inicial] <= Table[cantidad] && Table2[cantidad final] >= Table1[cantidad]), Table2[descuento])
@fav_ccc2021 , Create a new column in the table 1
maxx(filter(Table2, Table2[Producto] = table1[Producto] && Table2[cantidad Inicial] <= Table[cantidad] && Table2[cantidad final] >= Table1[cantidad]), Table2[descuento])
My friend, you are the BOSS!!! It works perfectly .... Its awesome.,
Thanks a lot ...
Best regards
User | Count |
---|---|
47 | |
26 | |
22 | |
17 | |
15 |
User | Count |
---|---|
53 | |
34 | |
17 | |
17 | |
15 |