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.
Gostaria de inserir uma coluna no powerpivot que gere o resultado conforme coluna calculada abaixo.
Lógica do resultado da coluna calculada: Se o texto da linha da coluna TIPO for igual ao texto da linha anterior (linha acima) da coluna TIPO então "NC" senão retorna o mesmo valor da mesma linha da coluna TIPO
Obs. a coluna formula é o que estou atualmente utilizando em tabela simples do excel para gerar o resultado
TIPO | COLUNA CALCULADA | FORMULA |
REC | REC | SE(E20=E19;"NC";E20) |
REC | NC | SE(E21=E20;"NC";E21) |
PLAY | PLAY | SE(E22=E21;"NC";E22) |
PLAY | NC | SE(E23=E22;"NC";E23) |
REC | REC | SE(E24=E23;"NC";E24) |
PLAY | PLAY | SE(E25=E24;"NC";E25) |
REC | REC | SE(E26=E25;"NC";E26) |
REC | NC | SE(E27=E26;"NC";E27) |
Here is something which can get you started:
I assume there is index column in your table, if not you can add one using "Edit Query", "Add Column", once it is added, you can create calculated column using following formula:
Column = var prevKind = CALCULATE(MAX(Table1[KIND]), FILTER(Table1,Table1[Index]= EARLIER(Table1[Index])-1)) return if(Table1[KIND]=prevkind, "NC", Table1[Kind])
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.
The function MAX takes an argument that evaluates to numbers or dates and cannot work with values of type String.
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.
what is your data source? Also are you using lates March release of Power BI Desktop
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.
Data source: excel .xlsx
Version: 2.35.4399.601 32-bit (maio de 2016)
First and foremost, can you update your PowerBI to latest release which is Version: 2.44.4675.422 64-bit (March, 2017)
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |