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
Akkoustic
Frequent Visitor

Create an measure with a condition from an other unrelated table.

Im pretty new to Power BI and DAX. So I've got a table Project and a table Opportunity. 

I want to calculated the Estimated revenue win rate. This will be done by  [Total Est. Won]   /  [Total Est. Won/Lost]

First step in my mind is to figure out what [Total Est. Won] is. 

Opportunity has a column named status with Won, Lost and Open. Project has the Est. Revenue.

I want in project,  a measure where I can get my first step done. So far I tried this and it returned me blank. I assume this is because I dont have any relation between them. Is there any way I can get this done withouth a relationship between these tables?

 

Measure:

Total Est. Won := CALCULATE(SUM(Project[Est. Revenue (Base)]),FILTER(RELATEDTABLE(Opportunity),[Status] = "Won"))

1 REPLY 1
Anonymous
Not applicable

Hi Akkoustic

 

I fear this is not possible. Think about what you are asking in that DAX formula.

It is like saying to someone "Count how many apples are on the tree, where the fish in the sea are green" there is no connection. You need a common field in both tables or a third table joining them. 

As a guess, i would think you have x Opportunities per project (or x projects per Opportunity)? Perhaps there is a customer name or location or something common to both?

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.