This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hola, me gustaría crear un parámetro como segmentación maestra para controlar la página en BI
¿Es posible que podría tener una cortadora para seleccionar 2 columnas - 1." Beneficio". Pass%" para influir en la medida como
measure = CALCULATE(SUMX('Table','Table'[Profit]),FILTER('Table','Table'[PARAMETER_COLUMN]=>5%
Aquí está el conjunto de datos que tengo:
| Id | Beneficio | % de beneficio | Pasador % |
| 1 | 10 | 2% | 10% |
| 2 | 5 | 4% | 40% |
| 3 | 2 | 5% | 22% |
| 4 | 6 | 1% | 1% |
| 5 | 12 | 24% | 50% |
| 6 | 1 | 1% | 20% |
| 7 | 66 | 58% | 3% |
| 8 | 5 | 4% | 20% |
| 9 | 1 | 1% | 3% |
| 10 | 0 | 0% | 55% |
| 11 | 45 | 12% | 40% |
| 12 | 45 | 12% | 56% |
| 13 | 0 | 0% | 2% |
| 14 | 5 | 5% | 6% |
| 15 | 8 | 6% | 10% |
Gracias
@amitchandak @harshnathani
Pero es posible que podría tener un parámetro no un rango de números, sino Text(Columns).
Me parece que no pude poner el texto en el parámetro What-if de alguna manera.
Con la medida, la medida podría cambiarse dinámicamente con el parámetro, haciendo que la fórmula sea así cuando elijo en la segmentación,
measure = CALCULATE(SUMX('Table','Table'[Profit]),FILTER('Table','Table'[PARAMETER_COLUMN]=>5%))
--> measure = CALCULATE(SUMX('Table','Table'[Profit]),FILTER('Table','Table'[Pass%]=>5%))
--> measure = CALCULATE(SUMX('Table','Table'[Profit]),FILTER('Table','Table'[Profit%]=>5%))
Gran agradecimiento si hay algún consejo
Hola @ngct1112 ,
El parámetro what-if solo se puede utilizar para datos numéricos. ¿Puedo saber cuál es el resultado final que quieres? Es el filtro de datos por la segmentación de datos para (Beneficio %>5% ? Pase %>50) o (Beneficio %>50 && Pasar %>50)? ¿Y cuáles son los parámetros de texto que mencionaste? ¿Eso es por el campo de hechos en la tabla o una medida?
Saludos
Rena
Hola @ngct1112 ,
No muy claro
Puedes intentarlo
measure =
CALCULATE (
SUM ( 'Table'[Profit] ),
FILTER (
'Table',
'Table'[PARAMETER_COLUMN] >= "5%"
)
)
saludos
Harsh Nathani
Apreciar con un Kudos!! (Haga clic en el botón Pulgares arriba)
¿He respondido a tu pregunta? ¡Marca mi puesto como una solución!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.