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...
Pete37
8 years agoFrequent Visitor
Anonymous
I need a range to present it on the line chart. Yes I use Calendar Table to create the slicer.
Anonymous
8 years agoNot applicable
Change BASELINE_VALUE to the following:
BASELINE_VALUE =
CALCULATE(
SUM('sheet1'[Closing price]);
FILTER(ALL('sheet1'[Date]);'sheet1'[DATE]<=MAX('date'[Date]) && 'sheet1'[Date]>=MIN('date'[Date])
))
Regards,
Lydia
- Pete378 years agoFrequent Visitor
Anonymous
The new function has too few arguments. I am not sure how to fix it.
- Anonymous8 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
- Pete378 years agoFrequent Visitor
Anonymous
Unfortunately it still doesn't work :( All lines on the chart should start from 0 as at 2017-01-12