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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Line based on card value

Hi guys,

 

Currently i am working on a dashboard in which i want to show a graph about a (slicer selected) period of weeks in combination with the stock levels and a seperate slicer which impacts a card about the current value based on the week number. Now i want to add a line, which displays the value that is shown on the card visual, inside of the line graph. However i can't seem to find the solution in video's or earlier posted question, does anybody know how to help? I made a concept picture below.Card line into line graph.png

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , In the analytics pane you can use the constant line. In that using fx you can use measure , if will use grand total value of that measure

https://docs.microsoft.com/en-us/power-bi/desktop-analytics-pane

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

@amitchandak, thanks for your reply, but when i add in the Fx line it does not change based on the "current week" slicer, it stays at a 4.5mil number instead of the shown value in the cardCard line with fx line.png

Hi @Anonymous 

Thanks for reaching out to us.

The value of this measure in the card and chart is different, it should be affected by the Context. So you have to change the measure in Line Chart, please share the relevant sample file or measure and data, thanks.

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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