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
CJANE
Helper I
Helper I

Joining Dates - Creating Column or Row

I have the following two tables

Fund

Fund IDTermination Date
A6/25/2019
B6/24/2019

 

FUND EVALUATION

FUND IDUnitsPriceEffective Date
A500106/21/2019
A10096/24/2019
A100076/25/2019
B60066/21/2019
B800026/24/2019

 

I need help creating a measure or column that will calculate the market value of a fund at termination date.  To do this I need to join the date in the Fund and Fund Evaluation table.  How would I go about calculating the following

 

Fund A:  1000*7 = 7000

Fund B:  8000*2 = 16000

1 REPLY 1
Anonymous
Not applicable

 

 

First step is to merge the queries on the Fund ID column. Select merge queries while you are viewing the Fund Evaluation table in the query editor. Expand it out so you can view the termination date.

 

pbi merge.PNG

 

 

 

 

 

Next, add a new column and input the formula:

 

Column = if( 'Fund Evaluation'[Effective Date] = 'Fund Evaluation'[Fund.Termination Date], 'Fund Evaluation'[Units] * 'Fund Evaluation'[Price], 0)

 
pbi calc.PNG
 
This should provide what you are looking for. Let me know if this helps of not.

 

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.