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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 Power BI 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!
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 15 | |
| 14 | |
| 13 |