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
moh3azzam
New Member

creating Data Quality Dashboard

Hi,

I have a dataset containing customer information like ID Nu and etc ...

 

I created my check in every column for example on ID Nu and I make another column called ID Nu Valid and the result was valid or not valid and the same for all other columns 

 

what I need now is to create a table like that 

CDEValidNot Valid
Customer Full Name92%8%
Address98%2%
Industry Code80%20%

 

Please, how can I do that?

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

Hi , @moh3azzam 

According to your description, you want to calculate the percentage of the column.

Here are the steps you can refer to :
(1)This is my test data:

vyueyunzhmsft_0-1678673783730.png

(2)We can click "New Table" to create a table :

Table 2 = UNION(UNION( ADDCOLUMNS( SELECTCOLUMNS('Table',"validColumn",[Valid1]) , "ColumnName","Cutomer Full Name"),
 ADDCOLUMNS( SELECTCOLUMNS('Table',"validColumn",[Valid2]) , "ColumnName","Address")),
  ADDCOLUMNS( SELECTCOLUMNS('Table',"validColumn",[Valid3]) , "ColumnName","Industry Code"))

vyueyunzhmsft_1-1678673875773.png

(3)Then we can create two measures :

Valid = DIVIDE( CALCULATE( COUNT('Table 2'[validColumn]), 'Table 2'[validColumn] = "valid") , COUNT('Table 2'[validColumn]))
Not Valid = DIVIDE( CALCULATE( COUNT('Table 2'[validColumn]), 'Table 2'[validColumn] = "not valid") , COUNT('Table 2'[validColumn]))

 

Then we can put the fields we need on the visual and we can meet your need:

vyueyunzhmsft_2-1678673925599.png

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

1 REPLY 1
v-yueyunzh-msft
Community Support
Community Support

Hi , @moh3azzam 

According to your description, you want to calculate the percentage of the column.

Here are the steps you can refer to :
(1)This is my test data:

vyueyunzhmsft_0-1678673783730.png

(2)We can click "New Table" to create a table :

Table 2 = UNION(UNION( ADDCOLUMNS( SELECTCOLUMNS('Table',"validColumn",[Valid1]) , "ColumnName","Cutomer Full Name"),
 ADDCOLUMNS( SELECTCOLUMNS('Table',"validColumn",[Valid2]) , "ColumnName","Address")),
  ADDCOLUMNS( SELECTCOLUMNS('Table',"validColumn",[Valid3]) , "ColumnName","Industry Code"))

vyueyunzhmsft_1-1678673875773.png

(3)Then we can create two measures :

Valid = DIVIDE( CALCULATE( COUNT('Table 2'[validColumn]), 'Table 2'[validColumn] = "valid") , COUNT('Table 2'[validColumn]))
Not Valid = DIVIDE( CALCULATE( COUNT('Table 2'[validColumn]), 'Table 2'[validColumn] = "not valid") , COUNT('Table 2'[validColumn]))

 

Then we can put the fields we need on the visual and we can meet your need:

vyueyunzhmsft_2-1678673925599.png

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

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.