Skip to main content
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

New Member

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.

Community Support
Community Support



You may try to use ALLSELECTED Function in FILTER Function.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City


Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.