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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

comparar el valor basado en 2 fechas seleccionadas

HOLA a todos, soy nuevo en PowerBI y estoy descubriendo el camino para visulizar el resultado de la comparación de 2 fechas.

Datos sin procesar que tengo:

PáginaFechaPageView
A2019 Mar 215
A2019 Mar 420
A2019 Mar 105
B2019 Mar 28
B2019 Mar 316
B2019 Mar 420
C2019 Mar 5100

Salida esperada:

[Filtro, sólo seleccione 2 fechas por informe, por ejemplo, selecciono Mar-2 y Mar 4]

Página2019 Mar 22019 Mar 4Diferencia
A15205
B82012
C000

*OK no mostrar C si no hay ningún valor en esa fecha.


¡Gracias de antemano!

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hola @qucikq1

Por favor, compruebe mis siguientes resultados:

000.PNG

Pbix adjunto.

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

4 REPLIES 4
v-diye-msft
Community Support
Community Support

Hola @qucikq1

Por favor, compruebe mis siguientes resultados:

000.PNG

Pbix adjunto.

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Anonymous
Not applicable

elTabla 2 - CALENDARIO(FECHA(2019,1,1), FECHA(2019,12,31)) hizo el truco!!!
¡Increíble! ¡¡Muchas gracias!!
amitchandak
Super User
Super User

@qucikq1

Prefiere una medida diff como se indica a continuación. Prefiere 1o si funciona


Medida ?
var _max á maxx(Fecha,fecha[Fecha])
var _min á maxx(Fecha,fecha[Fecha])
devolución
calculate(sum(Table[PageView]),date[Date]-_max) - calculate(sum(Table[PageView]),date[Date]-_min)


Medida ?
var _max á maxx(Fecha,fecha[Fecha])
var _min á maxx(Fecha,fecha[Fecha])
devolución
calculate(sum(Table[PageView]),filter(all(Date),date[Date]-_max)) - calculate(sum(Table[PageView]),filter(all(Date),date[Date]-_min))

Anonymous
Not applicable

'Todo' es mi mesa, la diferencia es siempre 0.
DateDifference ?
var _max á MAXX('All', 'All'[Fecha])
var _min á MINX('Todos', 'Todos'[Fecha])
devolución
calculate(sum('All'[pageview]),filter(ALL('All'[Date]),'All'[Date]'_max)) - calculate(sum('All'[pageview]),filter(ALL('All'[Date]),'All'[Date]-_min))

Capture.PNG

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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