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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
baneworth
Helper III
Helper III

Target Line on combo graph

Having difficulties finding a DAX which works

 

I have Targets for Q1,Q2,Q3,Q4 and many different products

 

pwoerbiforum.JPG

 

I created Slicers for Product (only one product shown at a time), Month and Year.

Product column from this table is linked to Main Table(used for chart).

 

What i am trying to do now is, once i select a product it should show the correct Target as a line (Best case scenario with correct Quarter as well). I am also fine with 1 quarter setup only and change them manually once the quarter is done. 

 

I am struggling with the correct DAX for this

 

Best regards and thank you

7 REPLIES 7
parry2k
Super User
Super User

@baneworth I'm sure it is doable but it will be much easier if you can provide a sample pbix file with your data (remove sensitive info before sharing), it will help to provide the solution.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thanks for taking the time to respond

 

https://lamresearch-my.sharepoint.com/:u:/p/matthias_wrolich/EWLPYmZ8BUBEswjzUckmge4BwUJAOHfwQ3Olnve...

 

Please let me know if this Link works for you

 

The data tables providing data for this problems are "Target" & "vwLPR"

 

Best regards

Hi,

 

Due to community security policy, I'm unable to sign in your link by my personal account.
In order to solve your issue, could you please share the file via OneDrive for Business?
 
Best Regards,
Giotto Zhi

@baneworth you can redact your data and share it thru onedrive



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

That should do it

 

https://1drv.ms/u/s!AuYSFePTjcs5khhDalNPb0iEivGi?e=Urc93u

 

sorry, it is the first time i make use of it

Hi,

 

Thank you for sharing your file.

I extract some data to create a simple sample to test:

75.PNG

Please try to unpivot the four Quater columns:

71.PNG

After Apply&Close, Choose [Attribute] as X-axis and [Product] as Legend and [Value] as Value:

72.PNG

When you select one product, it shows:

74.PNG

Hope this helps.

 

Best Regards,

Giotto Zhi

Thanks for your input Giotto but i am afraid i cant use it like that, as you maybe saw in the sample file i have to attach the Quarter targets to the already created "Line and stacked column" chart as the Line value.

 

biforum.JPG

 

Best regards

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors