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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
tgie
Regular Visitor

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?

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

Hi @tgie ,

 

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.

vtangjiemsft_0-1676533035004.pngvtangjiemsft_1-1676533061573.png

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. 

View solution in original post

1 REPLY 1
v-tangjie-msft
Community Support
Community Support

Hi @tgie ,

 

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.

vtangjiemsft_0-1676533035004.pngvtangjiemsft_1-1676533061573.png

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. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.