Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I need to say
AVB = IF('SageFunctCodes$'[type]="Cost",Budgets[Budget]-Transactions[Actual],IF('SageFunctCodes$'[Type]="Revenue",Transactions[Actual]-Budgets[Budget],0))
but in a measure. When I try to copy the code in the measure it does not recognise the SageFunctCodes columns. How would I go about replicating the above in a Dax measure.
Thanks
C
Solved! Go to Solution.
Found
AvB = IF(COUNTROWS(VALUES( 'SageFunctCodes$'[Type] ))=1, IF(VALUES( 'SageFunctCodes$'[Type] ) = "Cost", Budgets[Budget]-Transactions[Actual], IF(VALUES( 'SageFunctCodes$'[Type] ) = "Revenue", Transactions[Actual]-Budgets[Budget]) ),Transactions[Actual]-Budgets[Budget])
This works.
Found
AvB = IF(COUNTROWS(VALUES( 'SageFunctCodes$'[Type] ))=1, IF(VALUES( 'SageFunctCodes$'[Type] ) = "Cost", Budgets[Budget]-Transactions[Actual], IF(VALUES( 'SageFunctCodes$'[Type] ) = "Revenue", Transactions[Actual]-Budgets[Budget]) ),Transactions[Actual]-Budgets[Budget])
This works.
User | Count |
---|---|
103 | |
87 | |
77 | |
70 | |
69 |
User | Count |
---|---|
113 | |
99 | |
97 | |
72 | |
68 |