Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
salonikhedkar_1
Helper II
Helper II

Interrupción debida a la fórmula

Cuando seleccionamos "Mostrar elementos sin datos", aparece una fila en blanco. ¿Cómo llenar la fila en blanco con 0 ?

He probado esta fórmula:

if(isblank(calculate(sum(amount), sameperiodlastyear(date)),0,calculate(sum(amount), sameperiodlastyear(date))))

Pero esta fórmula interrumpe otra columna que es impulsada por un statememt IF:

if(País - "Estados Unidos de América" && mes (fecha)> 1 && mes (fecha)<-3, 100,

If(País - "Estados Unidos de América" && mes (fecha)> 4 && mes(fecha)<-6, 200,

if(País - "Estados Unidos de América" && mes (fecha)> 7 && mes(fecha)<-9, 300,

if(País - "Estados Unidos de América" && mes (fecha)> 10 && mes(fecha)<-12, 400)

está agregando 0 adicionales en el objeto visual.

Estoy totalmente confundido sobre por qué la primera fórmula es causada por cuestiones tan grandes.

Apreciamos sus respuestas rápidas.

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hola @salonikhedkar_1 ,

Modifique su medida como se indica a continuación:

if(Country = "United States of America" && month(date)>=1 && month(date)<=3, 100,
If(Country = "United States of America" && month(date)>=4 && month(date)<=6, 200,
if(Country = "United States of America" && month(date)>=7 && month(date)<=9, 300,
if(Country = "United States of America" && month(date)>=10 && month(date)<=12, 400,0)

Agregue "0" al final de la última instrucción if, de lo contrario se devolverá en blanco para otros criterios.


Saludos
Kelly
¿Respondí a tu pregunta? ¡Marca mi puesto como solución!

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@salonikhedkar_1 , Trate como

calculate(sum(amount), sameperiodlastyear(date))+0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak

He probado esta fórmula. Funciona de forma similar a mi fórmula. También está causando interrupciones.

v-kelly-msft
Community Support
Community Support

Hola @salonikhedkar_1 ,

Modifique su medida como se indica a continuación:

if(Country = "United States of America" && month(date)>=1 && month(date)<=3, 100,
If(Country = "United States of America" && month(date)>=4 && month(date)<=6, 200,
if(Country = "United States of America" && month(date)>=7 && month(date)<=9, 300,
if(Country = "United States of America" && month(date)>=10 && month(date)<=12, 400,0)

Agregue "0" al final de la última instrucción if, de lo contrario se devolverá en blanco para otros criterios.


Saludos
Kelly
¿Respondí a tu pregunta? ¡Marca mi puesto como solución!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors