Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hey guys,
I need help, I can't add the total using sumX with some if statements , this is the formula I'm using, but as you can see , it doesn't show the total.
My Dax
Solved! Go to Solution.
please use
Horario_Expediente_Loja =
SUMX (
'Master_Status_Pickup_Tickets (2)',
VAR Pickup = 'Master_Status_Pickup_Tickets (2)'[PickupHour_Status_Pickup_off]
VAR Inicio = 'Master_Status_Pickup_Tickets (2)'[Horario_Inicio-Loja]
VAR _compara_status_inativo_abre_loja =
MIN ( Pickup, Inicio )
VAR _compara_status_ativo_fecha_loja =
MAX ( Pickup, Inicio )
RETURN
DATEDIFF (
_compara_status_inativo_abre_loja,
_compara_status_ativo_fecha_loja,
MINUTE
)
)
please use
Horario_Expediente_Loja =
SUMX (
'Master_Status_Pickup_Tickets (2)',
VAR Pickup = 'Master_Status_Pickup_Tickets (2)'[PickupHour_Status_Pickup_off]
VAR Inicio = 'Master_Status_Pickup_Tickets (2)'[Horario_Inicio-Loja]
VAR _compara_status_inativo_abre_loja =
MIN ( Pickup, Inicio )
VAR _compara_status_ativo_fecha_loja =
MAX ( Pickup, Inicio )
RETURN
DATEDIFF (
_compara_status_inativo_abre_loja,
_compara_status_ativo_fecha_loja,
MINUTE
)
)
Check out the November 2025 Fabric update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!