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
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
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.