Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi there, i need to create a line chart that has a "Plan" line that begins where the "Earned" line ends. I currently have the following measures for "Earned" & "Plan"
Solved! Go to Solution.
HI, @Anonymous
After my research, you could try this formula as Plan measure
Plan Line =
IF (
MAX ( fact_ManhourProgress[Date] ) >= TODAY (),
CALCULATE (
SUM ( fact_ManhourProgress[Value] ),
FILTER (
ALLSELECTED ( fact_ManhourProgress ),
fact_ManhourProgress[Date] <= MAX ( 'fact_ManhourProgress'[Date] )
&& fact_ManhourProgress[Date] >= TODAY ()
),
FILTER (
ALLSELECTED ( fact_ManhourProgress ),
fact_ManhourProgress[Type] = "Current"
),
FILTER (
ALLSELECTED ( fact_ManhourProgress ),
fact_ManhourProgress[Spreadsheet Field] = "Remaining Units"
)
)
+ CALCULATE (
SUM ( fact_ManhourProgress[Value] ),
FILTER (
ALLSELECTED ( fact_ManhourProgress ),
fact_ManhourProgress[Date] <= MAX ( fact_ManhourProgress[Date] )
&& fact_ManhourProgress[Date] <= TODAY ()
),
FILTER (
ALLSELECTED ( fact_ManhourProgress ),
fact_ManhourProgress[Type] = "Current"
),
FILTER (
ALLSELECTED ( fact_ManhourProgress ),
fact_ManhourProgress[Spreadsheet Field] = "Actual Units"
)
)
)
For example:
In my sample example:
Best Regards,
Lin
HI, @Anonymous
After my research, you could try this formula as Plan measure
Plan Line =
IF (
MAX ( fact_ManhourProgress[Date] ) >= TODAY (),
CALCULATE (
SUM ( fact_ManhourProgress[Value] ),
FILTER (
ALLSELECTED ( fact_ManhourProgress ),
fact_ManhourProgress[Date] <= MAX ( 'fact_ManhourProgress'[Date] )
&& fact_ManhourProgress[Date] >= TODAY ()
),
FILTER (
ALLSELECTED ( fact_ManhourProgress ),
fact_ManhourProgress[Type] = "Current"
),
FILTER (
ALLSELECTED ( fact_ManhourProgress ),
fact_ManhourProgress[Spreadsheet Field] = "Remaining Units"
)
)
+ CALCULATE (
SUM ( fact_ManhourProgress[Value] ),
FILTER (
ALLSELECTED ( fact_ManhourProgress ),
fact_ManhourProgress[Date] <= MAX ( fact_ManhourProgress[Date] )
&& fact_ManhourProgress[Date] <= TODAY ()
),
FILTER (
ALLSELECTED ( fact_ManhourProgress ),
fact_ManhourProgress[Type] = "Current"
),
FILTER (
ALLSELECTED ( fact_ManhourProgress ),
fact_ManhourProgress[Spreadsheet Field] = "Actual Units"
)
)
)
For example:
In my sample example:
Best Regards,
Lin
Thanks you are awesome!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 36 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 74 | |
| 66 | |
| 65 |