Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply

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
v-piga-msft
Resident Rockstar
Resident Rockstar

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
v-piga-msft
Resident Rockstar
Resident Rockstar

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.

Hi@v-piga-msft

 

exactly the answer,

Thank you

 

Cherry.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.