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, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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