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
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/

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.