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.
Tengo un panel donde los usuarios pueden profundizar en los datos usando una segmentación de año y una segmentación de mes.
Tengo un problema en el que si selecciono, digamos, 2019 y 2020 años, y luego seleccionar un determinado mes de la otra segmentación, los datos que se reflejan es sólo todo enero 2019 y enero 2020 en lugar de todos los meses dentro de enero de 2019 hasta enero de 2020.
Avísame si necesito proporcionar más información para una solución.
Hola @klewis1991 ,
He creado la medida principal de esta manera:
Slicer control =
VAR _date =
SELECTEDVALUE ( 'Table'[Date] )
VAR _year =
YEAR ( _date )
VAR _month =
MONTH ( _date )
VAR _cmonth =
SELECTEDVALUE ( 'Month'[Month] )
VAR _minyear =
CALCULATE ( MIN ( 'Year'[Year] ), ALLSELECTED ( 'Year'[Year] ) )
VAR _maxyear =
CALCULATE ( MAX ( 'Year'[Year] ), ALLSELECTED ( 'Year'[Year] ) )
RETURN
IF (
ISFILTERED ( 'Year'[Year] ) && ISFILTERED ( 'Month'[Month] ),
IF (
_year = _minyear
&& _month >= _cmonth,
1,
IF (
_year > _minyear
&& _year < _maxyear,
1,
IF ( _year = _maxyear && _month <= _cmonth, 1 )
)
),
1
)
Puede poner esta medida en el filtro visual de la tabla y establecer su valor como 1, obtendrá el resultado de la siguiente manera:
Acerca de otras variables y tablas y columnas entrecomilladas, puede consultar mi archivo de ejemplo que espera ayudarle:
Mejores looks,
Yingjie Li
Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
@klewis1991 sólo mostrará lo que está seleccionado y así es como funciona la segmentación de datos, pero si quieres un comportamiento diferente al que tienes que hacer la magia en las medidas para anular las segmentaciones.
Me gustaría❤ elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
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 |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |