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.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |