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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
AhmishCyborg
Regular Visitor

Getting a data quality score of accepted values from a table

Hi All,

 

Does anyone know a quick way of displaying quality scores of how many returns in a table have acceptable values and how many have nulls?

 

I have 2 tables one of returns and one of acceptable values (the returns table is fairly big 100 or so columns and 700K rows) see below for tables and desired outcome.

2024-01-24 11_21_05-Book1 - Excel.png

My current solution is to create a measure for each column with if statements that counts all the rows where the returns have acceptable values and then break down into nulls and acceptable values and percentages with further measures. However, the returns table has a lot of columns and sometimes a lot of acceptable values and this will take a lot of time. Is there a way to match the returns table to the accepted values table and quickly get the desired output?

 

I do not mind if the solution is in power query or measures etc.

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @AhmishCyborg 

 

Based on your needs, I have created the following form.

vjialongymsft_0-1706166743916.png

vjialongymsft_1-1706166753293.png

 

You can use the following dax to get the result you want.

CommonValuesInCol1 = 
VAR accept_number=
COUNTROWS(
    INTERSECT(
        DISTINCT('Table'[Col1]),
        DISTINCT('Table (2)'[Col1 accept value])
    )
)
RETURN
DIVIDE(accept_number,COUNTROWS('Table'))
CommonValuesInCol2 = 
VAR accept_number=
COUNTROWS(
    INTERSECT(
        DISTINCT('Table'[Col2]),
        DISTINCT('Table (2)'[Col2 accept value])
    )
)
RETURN
DIVIDE(accept_number,COUNTROWS('Table'))

 

 

vjialongymsft_2-1706166850485.png

 

 

 

 

Best Regards,

Jayleny

 

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

Hi @AhmishCyborg 

 

Based on your needs, I have created the following form.

vjialongymsft_0-1706166743916.png

vjialongymsft_1-1706166753293.png

 

You can use the following dax to get the result you want.

CommonValuesInCol1 = 
VAR accept_number=
COUNTROWS(
    INTERSECT(
        DISTINCT('Table'[Col1]),
        DISTINCT('Table (2)'[Col1 accept value])
    )
)
RETURN
DIVIDE(accept_number,COUNTROWS('Table'))
CommonValuesInCol2 = 
VAR accept_number=
COUNTROWS(
    INTERSECT(
        DISTINCT('Table'[Col2]),
        DISTINCT('Table (2)'[Col2 accept value])
    )
)
RETURN
DIVIDE(accept_number,COUNTROWS('Table'))

 

 

vjialongymsft_2-1706166850485.png

 

 

 

 

Best Regards,

Jayleny

 

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors