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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.