Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hola
¿Puedo obtener ayuda para escribir una función que generará la columna a la derecha?
| Empresa | Producto | año | Salida |
| ABC Corp | A | 2017 | Primer año |
| GHY Corp | A | 2018 | Primer año |
| YYZ Corp | B | 2020 | Segundo año |
| ABC Corp | A | 2018 | Segundo año |
| ABC Corp | A | 2019 | Tercer año |
| YYZ Corp | B | 2019 | Año de los abetos |
| HYU Corp | A | 2020 | Primer año |
Hola @PowerBI87
tratar de crear una columna
Output =
var r = RANKX(FILTER(ALL('Table'), 'Table'[Company] = EARLIER('Table'[Company]) && 'Table'[Product] = EARLIER('Table'[Product])),
'Table'[Year], , ASC)
var textRank = SWITCH(r,
1, "First",
2, "Second",
3, "Third",
BLANK())
RETURN
textRank & " Year"Q
Hola @PowerBI87 ,
Para ayudar, tendría que entender cómo se está determinando la salida. Obviamente no es el Año - Salida así que ¿cuáles son las variables que está tratando de utilizar?
Proud to be a Datanaut!
Private message me for consulting or training needs.
@PowerBI87 agregar una columna con la siguiente expresión
Output =
VAR __minYear = CALCULATE ( MIN ( Table[Year] ), ALLEXCEPT ( Table, Table[Company] ) )
RETURN Table[Year] - __minYear ) + 1
Me gustaría❤ elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!
⚡Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionados con Power BI.⚡
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.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.