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

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

Reply
Anonymous
Not applicable

Using value from another linked table in a measure

Hi Guys. I'm stuck really bad in this one. I have 2 tables : 1. Facts table 2. Dimesnion table. Following image depicts the relationship established between the 2. The table at the top is the Facts table. "OI Owrking Days" is the dimension table.

 

theDarkPrince_0-1603388074326.png

I wish to create a multiline chart which will have the "FY" field in the legend well, Month field in Axis well and a measure in the Values well. The measure is supposed to calculate Per day amount so the formula for the same would be : SUM(Amount)/working days. I need to have the working days to be fetched from dimension table for each month that is plotted on the X-Axis. Following is what I have tried so far :

Amt Per Day =
var AmtPerDay = [Total Amount] / FILTER( 'Facts Table', RELATED( 'Dimensions Table'[WORKING_DAYS] ) )
RETURN
AmtPerDay
Note : Both the tables are fetched using DirectQuery mode. 😐
Any help is appreciated. 
3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Try like

Amt Per Day =
var AmtPerDay = [Total Amount] / Sumx( 'Facts Table', RELATED( 'Dimensions Table'[WORKING_DAYS] ) )
RETURN
AmtPerDay

 

Please provide your feedback comments and advice for new videos
Tutorial Series Dax Vs SQL Direct Query PBI Tips
Appreciate your Kudos.

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
Anonymous
Not applicable

I'm afraid that did not work @amitchandak. Check out the image below :

 

theDarkPrince_0-1603429684361.png

 

This is how the line chart shoud look like. But it looks like :

theDarkPrince_1-1603429746804.png

 

I am not sure how to get the desired results. Been trying a lot of different functions since last 2 days but nothing has worked thus far. 😞

Hi @Anonymous ,

 

Would you please use the following measure:

 

 

Amt Per Day =
var AmtPerDay = SUMX('Facts Table', [Total Amount]/RELATED( 'Dimensions Table'[WORKING_DAYS] ) )
RETURN
AmtPerDay

 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.