cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stella1215
Frequent Visitor

Display Line Chart Data in Card Visual When Clicking on Any Point

Hello everyone!

 

I want to display line chart data in card visual when clicking on any point like the first picture below: demo.png

 

So far I achieve something like the picture below, but when I click on any point, it only shows one value at a time while others are blank. Cuz it's not filtering that date, and I can only click on certain line.

 

demo2.png

 

This is my measure for CPU1: 

 

 

CPU1 = CALCULATE(SUM(CPU[avg_CounterValue]),FILTER(ALLSELECTED(CPU),CPU[Computer] = "nPEGOLDVM1"))

 

 

 

What can I do to achieve the result I want? Any idea or thoughts will be much appreciated!! Thank you!!

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

 Hi, @stella1215 

 

I'm sorry I misunderstood you before, after seeing your sample data I re-read your question, in fact the measure you used is perfectly fine.

Your problem is that you only clicked on one of the points, you know in your example, the clicked point filters the computer ID and time 2 filters, not just the time, because of this the other two cards will show blank.

It's easy to make them show, just hold “Ctrl” at the same time and keep clicking on the other points needed, you can even choose a different time.

v-angzheng-msft_0-1620810713308.jpeg

v-angzheng-msft_1-1620810713313.jpeg

 

 

Is this the result you want? Hope this is useful to you

Please feel free to let me know If you have further questions

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-angzheng-msft
Community Support
Community Support

 Hi, @stella1215 

 

I'm sorry I misunderstood you before, after seeing your sample data I re-read your question, in fact the measure you used is perfectly fine.

Your problem is that you only clicked on one of the points, you know in your example, the clicked point filters the computer ID and time 2 filters, not just the time, because of this the other two cards will show blank.

It's easy to make them show, just hold “Ctrl” at the same time and keep clicking on the other points needed, you can even choose a different time.

v-angzheng-msft_0-1620810713308.jpeg

v-angzheng-msft_1-1620810713313.jpeg

 

 

Is this the result you want? Hope this is useful to you

Please feel free to let me know If you have further questions

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

v-angzheng-msft
Community Support
Community Support

Hi, @stella1215 


Could you please consdier sharing a simple sample file without any sesentive information for further discussion? Then I can try to look into it to come up with a more accurate measure.

 

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

example  here's my example in zip containing an example pbix and the data I used. Thank you for your willingness to help! Much appreciated! Let me know if the link works cuz it's my first time doing it in this way. 

amitchandak
Super User IV
Super User IV

@stella1215 , Have you switch off the interaction between the virtual machine and card. Same why it shouldn't interact with Date.

 

This seems fine, same should be done with other two

CPU1 = CALCULATE(SUM(CPU[avg_CounterValue]),FILTER(ALLSELECTED(CPU),CPU[Computer] = "nPEGOLDVM1"))

 

https://docs.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

I didn't switch them off but even if I did after reading your reply, I still cannot achieve the result I wanted for some reason. CPU2 and CPU3 already implemented the same measure but different CPU[Computer]. Every time I click one line, the other two always show blank. Is there a way to select that one axis value only and three cards will show result at that point?

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors