The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
You may try to use ALLSELECTED Function in FILTER Function.