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
Syndicate_Admin
Administrator
Administrator

Calculation measured for values that is not in two related tables

Hello everyone!

I have several related tables and want to calculate a measure to show value in all fields that are in the parent matrix (General Report) even if that value is not in other related tables. (image 1)

kikejnt_1-1621333929872.png

the value I underline below in yellow is not in the other tables. (image 2)

kikejnt_2-1621334002998.png

So when I apply this formula, it disappears. (image 3) I copy the formula:

Coste final estimado =
var _lastdate = CALCULATE(MAX('AFO & SAP BW_Situación Económica IS'[DataKey]),ALL('AFO & SAP BW_Situación Económica IS'))
var _lastdate2 = CALCULATE(MAX('AFO & SAP BW_Presupuestación y Planificación IS'[DataKey]),ALL('AFO & SAP BW_Presupuestación Y Planificación IS'))
return
IF(calculate(sum('AFO & SAP BW_Situación Económica IS'[Coste final estimado SE]),'AFO & SAP BW_Situación Económica IS'[Grupo SE]="TOTAL",'AFO & SAP BW_Situación Económica IS'[DataKey]= _lastdate)=BLANK(),calculate(sum('AFO & SAP BW_Presupuestación Y Planificación IS'[Coste final estimado PP]),'AFO & SAP BW_Presupuestación Y Planificación IS'[DataKey]= _lastdate2),calculate(sum('AFO & SAP BW_Situación Económica IS'[Coste final estimado SE]),'AFO & SAP BW_Situación Económica IS'[Grupo SE]="TOTAL" ,'AFO & SAP BW_Situación Económica IS'[DataKey]= _lastdate))

kikejnt_3-1621334134767.png

For the ADI-XXX value that is not in the other related tables, I need to assign you a value from your "AFO_Informe General" table. How do I do that?

I hope I explained myself. Thank you.

1 REPLY 1
v-deddai1-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

Would you please show us sample pbix file.?Your screenshot is too fuzzy. I can't get understanding your formula.

 

Best Regards,

Dedmon Dai

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors