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
Anonymous
Not applicable

Excel Formatting Help!

Hello!

 

I am lookiing for some excel help or tips! I currently am reciveving data i the following form. I eventually am going to to be sorting the information by building. I am looking for an efficient way to combine each row to eventually contain all of the values in one row ( to eventually be put in powerbi). I can go through and indivdually change each row but I will be recieving many years of data and this will talk an INSANE amount of time. 

 

Any tips, tricks, or comments could be extremly useful. Thanks!! 

 

 

 Building excel2.PNG

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

For a simple dataset which i use for a test, you can easily get something like your screenshot by using a matrix.

5.png

12.png

 

But, if you want to make some changes on the data model, you could go to Query Editor

1.Duplicate Column of “commodify”

2.AddIndexColumn

3.pivot column “commodify” based on “total use”

7.png

4.Rename Columns with “use” as suffix.

8.png

5.pivot column “copy of commodify” based on “total demend”

9.png

6.Remove Columns which is all null value and “index” column after step5

10.png

 

Please refer to my pbix (look at sheet3)

 

Best Regards

Maggie

View solution in original post

5 REPLIES 5
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

For a simple dataset which i use for a test, you can easily get something like your screenshot by using a matrix.

5.png

12.png

 

But, if you want to make some changes on the data model, you could go to Query Editor

1.Duplicate Column of “commodify”

2.AddIndexColumn

3.pivot column “commodify” based on “total use”

7.png

4.Rename Columns with “use” as suffix.

8.png

5.pivot column “copy of commodify” based on “total demend”

9.png

6.Remove Columns which is all null value and “index” column after step5

10.png

 

Please refer to my pbix (look at sheet3)

 

Best Regards

Maggie

Anonymous
Not applicable

Thanks Maggie, this  was super helpful ... AND worked! 

jthomson
Solution Sage
Solution Sage

Still seems pretty unclear but I'd guess you can just make some measures to sum where you need to sum and drop everything into  a matrix visualisation

jthomson
Solution Sage
Solution Sage

It's not clear exactly what you're wanting to combine, what's your desired end result? You could probably find that a lot of what you want to do could be done in Power BI itself

Anonymous
Not applicable

I apologize, it isn't very clear. Eventually I want to be able to have the building data for each "commodity" formatted to one row and each commodity having it's own column like ...

 

Buidling excel 3.PNG

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.