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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
ChayDommeti
Frequent Visitor

Need help with DAX

i have 2 tables

Azure Main and under it columns are 

Date

Month

Year

Date and month

Product

cost

 

another table name is 'Azure Data' and columns are

product ( product list is all filled in rows)

Jan 2020

Feb 2020

and so on

 

Now i want the cost of each product for each month by taking data from 'azure main' table and populating in the columns of 'azure data'. any help on how i can do that? 

3 REPLIES 3
Anonymous
Not applicable

Hi @ChayDommeti

 

You should first use transpose to make the Month Year columns of Azure data table as one column,then use "lookupvalue" function to get the cost you need.

 


 
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
 
Ashish_Mathur
Super User
Super User

Hi,

Share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@ChayDommeti , do you plan to create a transposed table where months are columns

refer if this can help

https://yodalearning.com/tutorials/power-query-helps-transposing-data/

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.