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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.