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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Suma hasta el mes seleccionado

Hola

Quiero calcular el importe total hasta el mes seleccionado en la segmentación. Mostraré el resultado en una tarjeta.

3 REPLIES 3
amitchandak
Super User
Super User

@vsgarciap , No claro Tratar como

Till Date =
VAR _max = MAXX(Allselected('Calendar'), 'Calendar'[DATE] )
return 
CALCULATE (
SUM ( Sales[amount] ),
FILTER ( all('Calendar'),'Calendar'[DATE] <=_max),
)
Anonymous
Not applicable

Funciona perfectamente, era lo que estaba buscando. Gracias.

ryan_mayu
Super User
Super User

@vsgarciap

1.PNG

Por favor, vea el DAX a continuación.

Measure = 
VAR maxdate=max('Table'[date])
return CALCULATE(sum('Table'[value]),FILTER('Table','Table'[date]<=maxdate))

2.PNG

Espero que esto sea útil





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.