Forum Discussion
NicoH
4 years agoRegular Visitor
Need help on DAX function
Hi everyone I'm confused by the DAX function. I want to compare the budget and contract amount based on a table with the budget and contract info with the columns like BudgetID, Year, Budget Amount,...
vojtechsima
4 years agoSuper User
ContracetAmountMeasure =
CALCULATE(
SUM(Contract[contractAmount]), USERELATIONSHIP(Budget[budgetID], Contract[budgetID]))NicoH
4 years agoRegular Visitor
Could you let me know the linked key between Budget and Contract table?
- vojtechsima4 years agoSuper User
Hi, NicoH
There is a non-active relationship between BudgetID and BudgetID ( I can then call it in the measure I sent).- NicoH4 years agoRegular Visitor
But it's a many-to-many link.
- vojtechsima4 years agoSuper User
NicoH
Well, yeah, it's definitely not Ideal, but it did achieve what you wanted.