cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

Como criar tabela Power BI / How to create a Power BI table

Tenho a seguite dúvida, tenho este schema de dados:

I have a question, I have this data schema:

 

Captura de Tela (269).png

 

Gostaria de realizar uma tabela assim:

I would like to do a table like this:

Ano     Quantidade

2018    83.579

2017    546.001

2016    898.221

Captura de Tela (270).png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resident Rockstar
Resident Rockstar

Re: Como criar tabela Power BI / How to create a Power BI table

Hi @Antonio_Flávio,

 

You need to do something change in Query Editor like below. Please follow the steps:

 

1. Go to Query Editor and selecet ANO_ATUAL and click Pivot Column under Transform.

 

pivot 2018.PNG

 

2. Do the same option for 2017 and 2016.

 

3. Select column 2017,2018,2016 and click Unpivot.

unpivot.PNG

 

4. Then you could create the calculated table with the formula below.

 

Table 2 = SUMMARIZE('Table','Table'[Year],"Q",SUMX('Table','Table'[Value]))

Here is the result.

result.PNG

 

For more details, you could have a reference my attachment.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Resident Rockstar
Resident Rockstar

Re: Como criar tabela Power BI / How to create a Power BI table

Hi @Antonio_Flávio,

 

You need to do something change in Query Editor like below. Please follow the steps:

 

1. Go to Query Editor and selecet ANO_ATUAL and click Pivot Column under Transform.

 

pivot 2018.PNG

 

2. Do the same option for 2017 and 2016.

 

3. Select column 2017,2018,2016 and click Unpivot.

unpivot.PNG

 

4. Then you could create the calculated table with the formula below.

 

Table 2 = SUMMARIZE('Table','Table'[Year],"Q",SUMX('Table','Table'[Value]))

Here is the result.

result.PNG

 

For more details, you could have a reference my attachment.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted

Re: Como criar tabela Power BI / How to create a Power BI table

Hi@v-piga-msft

 

exactly the answer,

Thank you

 

Cherry.

Helpful resources

Announcements
Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors