Forum Discussion
davidi4524
9 years agoHelper III
how to create sum by dates column
hi ' i have two tables: 1. sales per date columns: branch,date,sale 2.target per date columns: branch,date,target i need to calculate the the target - total sales per date my problem is that t...
- 9 years ago
You can use the DAX expression below to get your result.
Sales table:
Column = LOOKUPVALUE(Target[Target],Target[Date],Sales[Date])Target table
Column = CALCULATE(SUM(Sales[Sales]),FILTER(ALL(Sales),Sales[Date]=Target[Date]))
Regards,
Charlie Liao
v-caliao-msft
9 years agoMicrosoft Employee
You can use the DAX expression below to get your result.
Sales table:
Column = LOOKUPVALUE(Target[Target],Target[Date],Sales[Date])
Target table
Column = CALCULATE(SUM(Sales[Sales]),FILTER(ALL(Sales),Sales[Date]=Target[Date]))
Regards,
Charlie Liao
Anonymous
6 years agoNot applicable
is it an updated answer to this question because LOOKUPVALUE isnt a function in power query now