Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Creating a Data Quality Dashboard filtered by multiple criteria

Hello,

 

I am trying to create a Data Quality Dashboard filtered by multiple criteria. I have the following two tables:

 

Error-Table:

uidproductattribute
1xxxxProduct 1Attr1
2xxxxProduct 2Attr1
3xxxxProduct 1Attr3

where the product column is joined from the next table:

 

All-Products-Table:

uidproduct
1xxxxProduct 1
2xxxxProduct 2
3xxxxProduct 1
4xxxxProduct 1

 

I want to display the quality of each attribute in a bar chart. But when I calculate the quality in a new column or table, I can no longer filter by product.

 

Using the example from the table above:
Attr1 occurs twice in the Error-Table for a total of 4 records in the All-Products-Table. The rel. error is 2/4 = 50%.
By using a filter I want to take a closer look at Product1:  Now Attribute1 occurs once in the Error-Table for a total of 3 records in the All-Products-Table. The error would now be 1/3 = 33.3%.

 

What is the best way to solve this problem?

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) My test data is the same as yours.

    (2) We can create a measure. 

    Measure = 
     var _countrows_allpro=COUNTROWS(ALLSELECTED('All-Products-Table'))
     var _countrows_attribute=CALCULATE(COUNTROWS('Error-Table'),FILTER(ALLSELECTED('Error-Table'),[attribute]=MAX('Error-Table'[attribute])))
     return DIVIDE(_countrows_attribute,_countrows_allpro)

    (3) Then the result is as follows.

    Best Regards,

    Neeko Tang

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

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) My test data is the same as yours.

    (2) We can create a measure. 

    Measure = 
     var _countrows_allpro=COUNTROWS(ALLSELECTED('All-Products-Table'))
     var _countrows_attribute=CALCULATE(COUNTROWS('Error-Table'),FILTER(ALLSELECTED('Error-Table'),[attribute]=MAX('Error-Table'[attribute])))
     return DIVIDE(_countrows_attribute,_countrows_allpro)

    (3) Then the result is as follows.

    Best Regards,

    Neeko Tang

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