Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hola,
Ahora mismo tengo una tabla de excel de la que quiero directamente calcular ciertos valores en ella recogidos directamente en Power Bi.
Imaginaros que en mi tabla de hechos entre otras muchas cosas tengo la cantidad total de estuches producidos por lote y otras columnas en las que tengo estuches buenos y malos, osea que pasan una inspeción de calidad o no
Y tengo otra tabla en la que se establecen unos rangos de calidad en función del tamaño de lote.
Tabla FACTS
Lote | tamaño | buenos | malos | % rechazo |
A | 100 | 88 | 12 | 12% |
B | 5000 | 4980 | 20 | 0.4% |
C | 500 | 499 | 1 | 0.2% |
D | 10000 | 9840 | 160 | 1.6% |
E | 1000 | 989 | 11 | 1.1% |
id_rango | percentaje | size | size value to look |
R1 | 2% | entre 1 y 150 | 150 |
R2 | 1,5% | entre 151 y 500 | 500 |
R3 | 1% | entre 501 y 2000 | 2000 |
R4 | 0.5% | entre 2001 y 5000 | 5000 |
R5 | 0.1% | entre 5001 y 10000 | 10000 |
R6 | 0.1% | mayores 10001 | 10001 |
Mi idea es primero establecer una variable que en función del tamaño del lote, ya que no es constante pero está en un rango para después buscar el objetivo y si pudiera ser el rango, pero se que es complicado puesto que no hay una relación de uno a muchos posible
La construción de la primera variable podría ser la siguiente
Hi @amitchandak ,
I like to create a variable inside a measure, with T_EIVS concatenate other data from the first table (but i didn't put them) because the size value to look isn't an unique value and after that take the percentaje from the second table.
The measure could provide the percentaje for each value of the first table.
@LoreRed , T_EIVS is a column or measure?
Ideally you can create a new measure like
Switch(true(),
FACTS [Tamaño] <= 150 , 150 ,
facts [Tamaño] <= 500 , 500 ,
FACTS [Tamaño] <=2000 ,2000 ,
FACTS [Tamaño] <= 5000 , 5000 ,
FACTS[Tamaño]<=10000,10000,
10001
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
56 | |
55 | |
54 | |
37 | |
29 |
User | Count |
---|---|
77 | |
62 | |
45 | |
40 | |
40 |