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
sonuojha1
Helper IV
Helper IV

How to get Column from other transaction table

Dear All, 

 

I have the below scenario:

data Model as below:

sonuojha1_2-1603446585159.png

I have two transaction tables (fact) as Fact G and Fact P.

sonuojha1_0-1603446450709.pngsonuojha1_1-1603446519154.png

 

Now my requirement is to create analysis as

In the model Supplier and Date are the confirmed Dimensions.

from Fact G:-

Quantity and Cost by Region By Type and same from Fact P as well " Quantity, cost By Region By Type".

 

Could someone please help to archive it by writing DAX

 

Help would be appreciated.

 

Regards,

Sonu

 

 

 

 

 

 

4 REPLIES 4
CNENFRNL
Community Champion
Community Champion

Hi, @sonuojha1 , by intuition, I think Expanded Table might come to your rescue; I tried with your data model but with more mockup data. It seems to work to me. You might want to see the attached file  for more details.

Screenshot 2020-10-23 213100.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

amitchandak
Super User
Super User

@sonuojha1 , take type (fact G) , from common take supplier, date, and Qty and Cost as measures from both table and try.

 

I doubt you can get a correct answer for that.

@amitchandakNo, I don't want to combine all in single report. Just want to create a measure so that I can use that in different visuals.

Is there any way to get Type column by using RELATED. I understand related works with direct joined table/ or by using LOOKUPVALUE. Kindly suggest and help.

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.