Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
101 | |
79 | |
72 | |
64 |
User | Count |
---|---|
142 | |
108 | |
101 | |
81 | |
74 |