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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
alanmccarthy
Frequent Visitor

Medir líneas planas después de que la columna de origen no tenga más datos

Estoy usando medidas para mostrar el total de costos, desde la columna "Eur Equiv" (fórmula a continuación).
Una cuestión es que la medida "flatlines" en su total después del mes actual (cuando no hay más valores en la "columna Eur Equiv").
¿Es posible detener la medida una vez que la fecha pasa Ahora() ?
EUR Total - Actual =
CALCULAR (
SUM ( [EUR Equiv] ),
FILTRO (
ALLseleccionado ( 'Calendario'[Año/Mes] ),
'Calendario'[Año/Mes] <-MAX ( 'Calendario'[Año/Mes] )
),'Presupuesto real'[Presupuesto,Real]-"Actual"
)
1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

Así que generalmente podrías hacer algo como:

EUR Total - Actual =
VAR __myCalc =
CALCULATE (
SUM ( [EUR Equiv] ),
FILTER (
ALLselected ( 'Calendar'[Year/Month] ),
'Calendar'[Year/Month] <= MAX ( 'Calendar'[Year/Month] )
),'Budget Actual'[Budget,Actual]="Actual"
)
RETURN
IF(MAX('Calendar'[Date])>NOW(),BLANK(),__myCalc)


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...

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@alanmccarthy


Trate de reemplazar 'Calendario'[Año/Mes] <-MAX ( 'Calendario'[Año/Mes] ) a 'Calendario'[Año/Mes] <-NOW()

EUR Total - Actual = 
CALCULATE ( 
SUM ( [EUR Equiv] ),
FILTER (
ALLselected ( 'Calendar'[Year/Month] ),
'Calendar'[Year/Month] <=NOW()
),'Budget Actual'[Budget,Actual]="Actual"
)

Paul Zheng
Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Greg_Deckler
Community Champion
Community Champion

Así que generalmente podrías hacer algo como:

EUR Total - Actual =
VAR __myCalc =
CALCULATE (
SUM ( [EUR Equiv] ),
FILTER (
ALLselected ( 'Calendar'[Year/Month] ),
'Calendar'[Year/Month] <= MAX ( 'Calendar'[Year/Month] )
),'Budget Actual'[Budget,Actual]="Actual"
)
RETURN
IF(MAX('Calendar'[Date])>NOW(),BLANK(),__myCalc)


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...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors
Top Kudoed Authors