Forum Discussion
sum before a day
- 8 years ago
Hi Aliafshari
When you select a YEAR, a MONTH and a DAY, result would be a single date
SELECTEDVALUE pulls that date
see the attached file with your sample data
Thanks for youre notice, Youre measure only depend on Date but I really want to first select Year, month and then day, how to add this filters in youre measure?
Hi Aliafshari
When you select a YEAR, a MONTH and a DAY, result would be a single date
SELECTEDVALUE pulls that date
see the attached file with your sample data
- Aliafshari8 years agoFrequent Visitor
Thank you Zubair_Muhammad
- Aliafshari8 years agoFrequent Visitor
Sorry Zubair_Muhammad
One more question, Consider we add a column name as Main account, how to sum before a day for each of main account in a table?
Date Main account Quantity
** ** **
- Zubair_Muhammad8 years ago
Community Champion
HI Aliafshari
In that case use this MEASURE. Then drag it to the TABLE visual along with the account names
Sum_Before_Selected_Day = CALCULATE ( SUM ( TableName[Quantity] ), FILTER ( ALLEXCEPT ( TableName, TableName[Main Account] ), TableName[Date] < SELECTEDVALUE ( TableName[Date] ) ) )