Forum Discussion
Calculation between 2 tables
Hi Anonymous,
You can add a calculated column to merge these data files, then use the new column to create the relationship.
Calculcate columns:
DateKey= CONCATENATE([Year],[Month])
Calculate the %SavedPledge:
%SavedPledge= Table1[SavedPledge]/RELATED(Table2[CountCancelled])
Regards,
Xiaoxin Sheng
- Anonymous9 years agoNot applicable
Anonymousmaybe i didn't understand you correctly, i created this calculation field under my "activity" table, but the DAX is invalid.
- Anonymous9 years agoNot applicable
Hi Anonymous,
It seems like your table not direct contain the year and month fields, you can try to use Concatenate(Year([Datefield]),Month([Datefield])) to instead.
If above still not help, can you share me a sample to test?
Regards,
Xiaoxin Sheng
- Anonymous9 years agoNot applicable
Anonymous thanks, i've created [DateKey] under Pledge table, but gave me below error message when i trying to relationship it with the "created on" date under Activity table.
how can i share the data with you here?