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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
kagy100
Advocate II
Advocate II

DAX Assistance Required

Hi Team,

 

Here is my query:

 

Table 1    
AccountFinancial DateFinancial Value  
AB1/05/202135  
     
Table 2    
Account Consumption DateConsumption value  
AB5/05/202123  
     
Output Table   
Account Financial DateFinancial ValueConsumption DateConsumption value
AB1/05/2021355/05/202123

 

Is the above possible in Dax? 

1 ACCEPTED SOLUTION

Hi, @kagy100 

Thank you for your feedback.

Please check the link down below, and please check if I understood your question correctly.

I could not know which columns to show in the new table.

I suggest doing this in Power Query Editory.

 

https://www.dropbox.com/s/0szj5clsk16bc47/PBIFORUM.pbix?dl=0 

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

7 REPLIES 7
Jihwan_Kim
Super User
Super User

Hi, @kagy100 

Please check the below picture and the sample pbix file's link down below.

 

Picture1.png

 

Output Table =
ADDCOLUMNS (
Table1,
"Consumption Date", LOOKUPVALUE ( Table2[Consumption Date], Table2[Account ], Table1[Account] ),
"Consumption value", LOOKUPVALUE ( Table2[Consumption value], Table2[Account ], Table1[Account] )
)
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thank You for your comprehensive answer Jihwan. I have attached my pbix file. could you kindly have a look and advise?

https://www.dropbox.com/s/kpy6rl29l9r96ry/PBIFORUM.pbix?dl=0

 

I get an error as "A table of multiple values was supplied where a single value was expected"

Hi, @kagy100 

Thank you for your feedback.

Please check the link down below, and please check if I understood your question correctly.

I could not know which columns to show in the new table.

I suggest doing this in Power Query Editory.

 

https://www.dropbox.com/s/0szj5clsk16bc47/PBIFORUM.pbix?dl=0 

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thanks Jihwan_Kim. Ideally, my preference would be DAX but I guess Power Query also does the trick. 

Wendeley-North
Resolver I
Resolver I

Go to manage relationships:

Wendeley-North_0-1622012790268.png

Create a new relationship between the two tables, using [Account] as the identifying column.

Using Table 1 as the original table, create 2 new measures:

ConsumptionDate = RELATED ( Table2[Consumption Date] )
ConsumptionValue = RELATED ( Table2[Consumption Value] )

And use these as Values in Table1.

Thank you for your kind time and reply. I was hoping to have an output table with the data instead of a measure. Would this be a possibility ? 

The proposed formulas for measures should work in a column, actually.

So: Go to Table1 > New Column > Use the two formulas above

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.