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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. 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

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.