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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
KristofDM
Frequent Visitor

Evitar cálculos futuros en una medida

Hice una medida para calcular la eficiencia. Funciona bien, pero tan pronto como se añaden trimestres futuros a la sección de filtro del informe, la medida muestra 100 eficiencia (1) . ¿Hay alguna manera de evitar que se active la lógica en datos futuros que sea realmente inexistente?
A medida que empiezo la medida con 1-, el resultado es 1 si no se devuelve ningún dato.

cualquier idea sería muy apreciada! ps: De hecho, robé la fórmula de una hoja de Excel 🙂

PBIQUestion.jpg


testmeasure 1-(DIVIDE(
(SUMA
(tabla[xdays])
),
(SUMA
(tabla[Día de duración])
-SUM(TABLE[OtherDay])
)
)
)

3 REPLIES 3
amitchandak
Super User
Super User

@KristofDM, algo así

testmeasure CALCULATE(1-(DIVIDE(
(SUMA
(tabla[xdays])
),
(SUMA
(tabla[Día de duración])
-SUM(TABLE[OtherDay])
)
)
), date[date] <today())

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
Greg_Deckler
Community Champion
Community Champion

@KristofDM -

Pruebe algo en la línea de:

testmeasure= 
VAR __measure = 
1-(DIVIDE(
  (SUM
   (table[xdays])
   ),
  (SUM
   (table[Durationday])
   -SUM(TABLE[OtherDay])
   )
  )
 )
RETURN
  IF(<some condition that identifies future>,BLANK(),__measure)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

gracias a todos por sus sugestions, el VAR __measure era de hecho lo que me faltaba!

gracias @Greg_Deckler

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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