Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowHi 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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
102 | |
70 | |
68 | |
54 | |
41 |
User | Count |
---|---|
156 | |
83 | |
66 | |
64 | |
61 |