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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
jrhughes
New Member

Multiplying between Tables

Hi All,

We're trying to create a seemingly simple calculation between two tables to measure the risk score for quality issues. 

In 'table1' I have a [Keywords] field and a [Phase Value] field that have reference values that relate the phase at which an issue is discovered to a numeric value.

In 'table2' I have a list of issues that each have a corresponding [Keywords] value and a [Severity] value.

My goal is for each issue to multiply the [Severity] value from 'table2' with the [Phase Value] from 'table1'.

Markup 1.pngAny help would be greatly appreciated!

1 ACCEPTED SOLUTION
v-huizhn-msft
Employee
Employee

Hi @jrhughes,

In your 'phases' table, the values of "Keywords" field are unique, right? If it is, you can create relationship between 'Current' table and 'phases' table. Then please create a calculated column using RELATED function. I try to reproduce your scenario as follows.

 

My sample data tables.

Capture1.PNGCapture2.PNG

Create calculated column using the formula below, and get expected result shown in screenshot.

IssueScore = 'Current'[Severity]*RELATED(Phases[Phase Value])



1.PNG

If you have any issue, please feel free to ask.

Best Regards,
Angelia

View solution in original post

1 REPLY 1
v-huizhn-msft
Employee
Employee

Hi @jrhughes,

In your 'phases' table, the values of "Keywords" field are unique, right? If it is, you can create relationship between 'Current' table and 'phases' table. Then please create a calculated column using RELATED function. I try to reproduce your scenario as follows.

 

My sample data tables.

Capture1.PNGCapture2.PNG

Create calculated column using the formula below, and get expected result shown in screenshot.

IssueScore = 'Current'[Severity]*RELATED(Phases[Phase Value])



1.PNG

If you have any issue, please feel free to ask.

Best Regards,
Angelia

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.