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
Anonymous
Not applicable

HASONEVALUE Chalenge

Hello Power BI Friends,

 

I have two tables as below:

 

Incoming

Date, Value

01/01/2018, 100

02/01/2018,0

03/01/2018,150

05/01/2018,200 //note that in this example there isn´t data for April

(...)

 

Costs

Date, Value

02/01/2018,50 //note that in this example there isn´t data for january

03/01/2018,170

04/01/2018,75

05/01/2018,80

06/01/2018, 90

(...)

 

I need a measure that divides the total Incoming by total costs only when there is revenue and cost in the same month.

 

Thanks for your time.

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi richardmoreno,

 

To achieve your requirement, merge incoming table and cost table by inner join like below:

Capture.PNG 

 

After merged:

111.PNG 

 

Then click close&apply, create a measure using dax like below:

222.PNG 

 

Regards,

Jimmy Tao

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi richardmoreno,

 

To achieve your requirement, merge incoming table and cost table by inner join like below:

Capture.PNG 

 

After merged:

111.PNG 

 

Then click close&apply, create a measure using dax like below:

222.PNG 

 

Regards,

Jimmy Tao

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.