Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |