Forum Discussion
mamoshareef
7 years agoFrequent Visitor
Calculation the sum in between two dates in two different tables
Hi All I have two tables and there is no relationship between them and I need to calculate the sum of one column in the second table between two specific dates in the first table. Please see the tw...
- 7 years ago
thanks a lot, I am editing the first solution to add a new column
SpoilerTotal Fuel Add =CALCULATE(SUM('Table 02'[Fuel Consumption]), FILTER(ALL('Table 02'), 'Table 02'[Work date] >= 'Table 01'[Date Last Stock Date] && 'Table 02'[Work date] <= 'Table 01'Stock take date && 'Table 02'[Water Station]='Table 01'[Water Station] )))
Ashish_Mathur
7 years agoSuper User
Hi,
Share the link from where i can download your PBI file.
mamoshareef
7 years agoFrequent Visitor
Hi
thanks a lot for your support
please find the link for the report
https://app.powerbi.com/view?r=eyJrIjoiZGE2NDhkZjYtNDlkOC00ODNiLTk0ZDgtOTMzOGEwN2EyY2RhIiwidCI6IjY5YTIyYzdiLTI0ZWEtNDY0Ny04M2Q0LTQ4YWE4ZGI4Y2U3NyIsImMiOjh9
thanks
- Ashish_Mathur7 years agoSuper User
Hi,
I need the link from where i can download the PBI file. In that file, clearly indicate the source and destination tables.
- mamoshareef7 years agoFrequent Visitor
thanks a lot, I am editing the first solution to add a new column
SpoilerTotal Fuel Add =CALCULATE(SUM('Table 02'[Fuel Consumption]), FILTER(ALL('Table 02'), 'Table 02'[Work date] >= 'Table 01'[Date Last Stock Date] && 'Table 02'[Work date] <= 'Table 01'Stock take date && 'Table 02'[Water Station]='Table 01'[Water Station] )))