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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Atoma
Frequent Visitor

Creating a data table from an Excel table

Hello everyone,

 

I would like to carry out audits using a powerbi of data extracted in excel but on PowerBi. The expected result is as follows:

Atoma_0-1693577461052.png

The excel table contains parameter names in the header and values according to component type.

Atoma_1-1693577588087.png

The red column WCA_ebkp_2012 should be in the first column of my table. The other columns should be in the second column, sorted according to the values in the 1st column. The 3rd column should count the number of empty values and the 4th value the total number of IDs.

Atoma_0-1693577461052.png

If I take an example, the value D3.3 in column WCA_eBKP_2012 has 58 occurrences of parameter WCA_NameManufacturer and 0 have the value of filled.

 

Thank you very much for your help

 

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

Hi , @Atoma 

According to your description, you want to calculate the balnk count of the parameters which is your column headers and the percentage of filled.

Here are the steps you can refet to :

(1)This is my test data:

vyueyunzhmsft_0-1693813513011.png

(2)First, we need to unpivot the table in Power Query Editor. We need to check your params columns type is "Text":

vyueyunzhmsft_1-1693813588750.png

And then we need to select the first column and click "unpivot other columns":

vyueyunzhmsft_2-1693813707364.png

 

Then we can get the table as follows and we can apply the data to Desktop.

(3)Then we can create three measures like this:

Blank Count = CALCULATE( COUNT('Table'[Value]) , 'Table'[Value]<> BLANK())+0
Total Count = COUNT('Table'[Value])
Percentage = DIVIDE([Total Count]- [Blank Count] , [Total Count])

 

(4)Then we can put the fields and the measures on the visual and we can get the result as follows:

vyueyunzhmsft_0-1693814023048.png

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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-yueyunzh-msft
Community Support
Community Support

Hi , @Atoma 

According to your description, you want to calculate the balnk count of the parameters which is your column headers and the percentage of filled.

Here are the steps you can refet to :

(1)This is my test data:

vyueyunzhmsft_0-1693813513011.png

(2)First, we need to unpivot the table in Power Query Editor. We need to check your params columns type is "Text":

vyueyunzhmsft_1-1693813588750.png

And then we need to select the first column and click "unpivot other columns":

vyueyunzhmsft_2-1693813707364.png

 

Then we can get the table as follows and we can apply the data to Desktop.

(3)Then we can create three measures like this:

Blank Count = CALCULATE( COUNT('Table'[Value]) , 'Table'[Value]<> BLANK())+0
Total Count = COUNT('Table'[Value])
Percentage = DIVIDE([Total Count]- [Blank Count] , [Total Count])

 

(4)Then we can put the fields and the measures on the visual and we can get the result as follows:

vyueyunzhmsft_0-1693814023048.png

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Thank you very much Aniya. I've just replaced the null values with nothing as I've set up a database which will be updated regularly.
And I put the formula Countblanck instead to count the empty cells.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.