Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hola,
Tenemos un filtro de semanas en las que el usuario selecciona 3 semanas.....
Para cada semana seleccionada tenemos que mostrar el total de clientes, que se calcula mediante una medida ya que los datos por clientes los tenemos desglosados por dia.
El cuadro seria algo asi:
a) Semanas elegidas
b) Clientes totales de la semana
c) Diferencia entre los clientes de la semana y la semana anterior --> este punto es el que no sabemos como construir ya que los datos dependen de la eleccion del usuario.
Muchas gracias por la ayuda ¡¡¡
Un saludo
Solved! Go to Solution.
Hi @EquipoPowerBI,
This is a great opportunity to use a new Power BI function called offset.
Create a measure similar with the following:
Diference =
VAR _last =
CALCULATE(
[# Value],
OFFSET(
-1
,
ALLSELECTED('Table'[Week])
)
)
VAR _actual = [# Value]
RETURN
IF(ISBLANK(_last), 0, _actual-_last)
Result:
Check the PBI in attach with the example.
Hi @EquipoPowerBI,
This is a great opportunity to use a new Power BI function called offset.
Create a measure similar with the following:
Diference =
VAR _last =
CALCULATE(
[# Value],
OFFSET(
-1
,
ALLSELECTED('Table'[Week])
)
)
VAR _actual = [# Value]
RETURN
IF(ISBLANK(_last), 0, _actual-_last)
Result:
Check the PBI in attach with the example.
Thanks¡¡¡¡¡¡
It is the perfect solution ¡¡¡¡
Gracias ¡¡¡¡¡¡
Tenemos que instalar la nueva versión para probar la solución.....estamos tramitandolo.
Muchas gracias ¡¡