Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

DAX For Weighted Column

Hello, I am looking to create a weighted calculation of data quality in the organization.

 

The data consits of the following columns:

Application

Data Quality Attribute

Data Subject Area

Business Usage

Violation Record ID

Violation Source Count

Source Column

Source Column Weight

 

The formula for Weighted Violations 

SUM(For every column calculate the source column weight, *  distinct count of violation record id)

 

Expected Output: Numerator

Filters: Everything is set to all

 

ColumnColumn WeightDistinct Count of Entities
Product of Weight * Entities
 
A8324 
B8216 
C224 
D428 
E8216 
F111 
G212 
H111 
J111 
   73
Expected Output

 

 

Filters: ScoreCard A is chosen

 

ColumnColumn WeightDistinct Count of Entities
Product of Weight * Entities
 
A8324 
C224 
D428 
F111 
H111 
   38

Expected Output

 

I have attached a link of power bi file and dummy data. 

 

https://www.dropbox.com/s/zids3ejrkkijb6i/attachments.zip?dl=0

 

This needs to work when select all is selected. 

  • Hi,

     

    I believe this is the result you want.  You may download my PBI file from here.

     

    Hope this helps.

     

9 Replies

  • Hi,

     

    Your question is not clear.  In a simple Table, please show the expected result on the data that you have shared.

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Super User

        Hi,

         

        I believe this is the result you want.  You may download my PBI file from here.

         

        Hope this helps.