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.
Buenas Tardes, necesito mostrar en un cuadro tres columnas con el total de las venta dependiendo del mes y año que escoja:
Por ejemplo si escojo el año 2020 y mes de Febrero debe mostrar:
Dic 19 Enero 20 Febrero 20
xx 1500 700 1800
yy 700 100 0
Si escojo el 2020 y el mes de abril debe mostrar:
Febreo 20 Marzo 20 Abril 20
xx 1800 1700 2000
yy 0 100 800
Atte,
Víctor Yupa
Hola @VicYupa
para lograr este comportamiento, creo que es necesario crear una nueva tabla de fecha independiente (asegúrese de que la nueva tabla no está conectada a ninguna de las otras tablas), y crear una medida como esta:
Filter Measure =
VAR _selectedMonth =
IF (
HASONEVALUE ( 'Year-Month'[YearMonthNum] );
CALCULATE ( SELECTEDVALUE ( 'Year-Month'[YearMonthNum] ) );
( year(TODAY ()) - 2010 ) * 12
+ MONTH ( TODAY () )
)
RETURN
IF (
COUNTROWS (
FILTER (
dimDate;
dimDate[YearMonthNum] >= _selectedMonth - 2
&& dimDate[YearMonthNum] <= _selectedMonth
)
) > 0;
1;
0
)
Utilice esta medida en el panel de filtro y establézquela para filtrar en igual a 1.
Salud
Sturla
Si este post ayuda, por favor considere Aceptarlo como la solución. Los felicitaciones también son agradables.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |