Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bodorsey11
New Member

Need Help: Monthly Target Line for Line and Cluster Column Chart

I am struggling to have my Monthly Target line show properly on a Line and Cluster column chart. It will only show as a flat line, instead of what I am trying to get which is monthly target line that we can track against. Any help would appreciated.

 

I tried this Dax code with no luck. 

NY Monthly Targets = CALCULATE(SUM('NY Monthly Target'[Planned Target]),FILTER('Calendar','Calendar'[Date].[Month]))
 

Image 1.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @bodorsey11 ,

 

Please try this formula:

NY Monthly Targets =
CALCULATE (
    MAX ( 'NY Monthly Target'[Planned Target] ),
    FILTER (
        ALLSELECTED ( 'NY Monthly Target' ),
        'NY Monthly Target'[Date].[Month] = SELECTEDVALUE ( 'Calendar'[Date].[Month] )
    )
)

 

Best Regards,

Jay

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @bodorsey11 ,

 

Please try this formula:

NY Monthly Targets =
CALCULATE (
    MAX ( 'NY Monthly Target'[Planned Target] ),
    FILTER (
        ALLSELECTED ( 'NY Monthly Target' ),
        'NY Monthly Target'[Date].[Month] = SELECTEDVALUE ( 'Calendar'[Date].[Month] )
    )
)

 

Best Regards,

Jay

Ashish_Mathur
Super User
Super User

Hi,

In a simple table, show the expected result.  Please also share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@bodorsey11 , if the target table is joined with calendar table then simply this should work

 

SUM('NY Monthly Target'[Planned Target])

 

In case you only have month, the create date using the month year and join both your data and target with a common date table

 

Distributing/Allocating the Monthly Target(Convert to Daily Target): Measure ( Daily/MTD): https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Monthly-Target-...

Distributing/Allocating the Yearly Target(Convert to Daily Target): Measure ( Daily/YTD): Magic of CLOSINGBALANCEYEAR With TOTALYTD/DATESYTD: https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Yearly-Target-C...

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.