Forum Discussion
Pete37
8 years agoFrequent Visitor
Dynamic % return calculation based on selected date
Dear PBI users, I've recently started using Power BI Desktop and after a few more or less successful simple visualizations I've stucked with something more complex. My inputs are closing share price...
Anonymous
8 years agoNot applicable
Pete37,
I miss ")" after ALL() function, please check DAX below.
BASELINE_VALUE = CALCULATE( SUM('sheet1'[Closing price]); FILTER(ALL('sheet1'[Date]);'sheet1'[DATE]<=MAX('date'[Date]) && 'sheet1'[Date]>=MIN('date'[Date]) ))
Regards,
Lydia
Pete37
8 years agoFrequent Visitor
Anonymous
Unfortunately it still doesn't work :( All lines on the chart should start from 0 as at 2017-01-12