March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Así que quiero usar la función de cálculo, pero realmente estoy luchando para conseguir que funcione en este caso. A partir de la siguiente tabla, quiero identificar el número único de clientes cuya suma de cantidades de un determinado producto llega a cero.
De la siguiente tabla como ejemplo, la fórmula DAX debe volver con 3 clientes porque no compraron un producto en particular de Range 2. Espero que tenga sentido, todas ayudan muy apreciadas.
Solved! Go to Solution.
Hola @Amos1992 ,
Pruebe la siguiente medida:
Measure =
VAR Total_Quantity =
SUMMARIZE (
'Table',
'Table'[Customer Type],
'Table'[Product],
'Table'[Product Range],
"Quantity Total", SUM ( 'Table'[Quantity] )
)
var ttt = SUM('Table'[Quantity])
RETURN
CALCULATE (
DISTINCTCOUNT ( 'Table'[Customer Type] ),
FILTER ( Total_Quantity, [Quantity Total] = 0 )
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHola @Amos1992 ,
Pruebe la siguiente medida:
Measure =
VAR Total_Quantity =
SUMMARIZE (
'Table',
'Table'[Customer Type],
'Table'[Product],
'Table'[Product Range],
"Quantity Total", SUM ( 'Table'[Quantity] )
)
var ttt = SUM('Table'[Quantity])
RETURN
CALCULATE (
DISTINCTCOUNT ( 'Table'[Customer Type] ),
FILTER ( Total_Quantity, [Quantity Total] = 0 )
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsMarch 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.