Forum Discussion

nicolasforty2's avatar
nicolasforty2
New Member
8 years ago

How can I set a recurring value across dates in a chart?

Dear Devs,

 

I am trying to create a target line from a calculated measure. My measure gives me a total value and it also shows on a text object. What I am trying to do is carry this value across my date dimension as a straight line.

 

Im using the following code:

 

CALCULATE(AVERAGEX ( ALL ( 'Fact'[Date] ), [Performance]), FILTER('Fact','Fact'[Date]>=MinDate && 'Fact'[Date]<=MaxDate))

 

Right now my result only gives me empty cells on a table and a total value.

 

Thanks in advance.