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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to calculate a measure from sum from tabl and a specific value from another table?

Hello Everyone,

 

Total_PR = SUM(table1[Energy2]) / SUM(table1[Irradiation]) * table2[column2].Value )

 

Im trying to calculate total performance based on the formula above.  so I need sum from  table 1 and a specific value from another table, but I couldnt and  I get this message "A single value for column 'park_size' in table 'park_info' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."

 

the value should be determined by th filter/slicer that I have in the dashboard.

 

Thanks in advance

 

 

 
2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous 

You can use RELATED function to associate a specific value from another table .The link below you can refer to .

https://docs.microsoft.com/en-us/dax/related-function-dax

 

Best Regards

Community Support Team _ Ailsa Tao

 

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

amitchandak
Super User
Super User

@Anonymous , In the measure you can only use a measure or summarized columns

so the options are

Total_PR = SUM(table1[Energy2]) / SUM(table1[Irradiation]) * sum(table2[column2])

 

if table 2 on 1 side or relation 1-M between table1 and table2

Total_PR = SUM(table1[Energy2]) / SUMX(table1, table1[Irradiation]) * related(table2[column2]))

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors