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
Syndicate_Admin
Administrator
Administrator

mes actual por defecto, mes seleccionado según filtro

Hola.

Necesito una forma de mostrar los valores del mes actual de forma predeterminada en una tabla, pero cuando se selecciona un mes específico en el filtro, debería mostrar los datos de ese mes.

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@NelsonDíaz1 , Puede usar un meausre como

Este mes =
var _max = eomonth(if(isfiltered('Date'),MAX( 'Date'[Date]) , today()),0)
var _min = eomes(_max,-1)+1 ,
devolución
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))

Último mes =
var _max1 = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _max = eomes(_max1,-1)
var _min = eomes(_max1,-2)+1
devolución
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))

O cree una columna en la tabla de fechas como esta y ahorre en este mes

Tipo de mes = Switch( True(),
eomonth([Fecha],0) = eomonth(Today(),-1),"Last Month" ,
eomonth([Fecha],0)= eomonth(Today(),0),"Este mes" ,
Formato([Fecha],"MMM-AAAA")
)

Fecha predeterminada hoy / Este mes / Este año: https://www.youtube.com/watch?v=hfn05preQYA

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

Top Solution Authors