cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
marial16
Helper II
Helper II

Show value on Button click

Hallo experts!

 

i was trying to find out how buttons work in BI Desktop.

For example i have 2 buttons. When i select the Count button i want to see the second card (27) and when i select the Volume i want to display the first card with the Sum. I tried putting the cards on top of each other. I also tried to add bookmarks but still i cant figure out how that works.

marial16_0-1643965747718.png

i am using measures for both cards

Measure1 = Count(Sales[OpenQuant])

Measure2 = Sum(Sales[OpenQuant])

Any ideas on hot to achieve that?

Thank you

1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Hi @marial16 ,

 

Check this blog of mine where I have shown how one can hide/un-hide visuals based on selections on buttons.

https://datavibe.co.uk/f/toggle-between-charts-in-power-bi

 

I have considered bar charts, in your case it will be card visuals.

 

Thanks,

Pragati

Best Regards,

Pragati Jain

MVP logoDACertAzCert

LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

5 REPLIES 5
Pragati11
Super User
Super User

Hi @marial16 ,

 

Check this blog of mine where I have shown how one can hide/un-hide visuals based on selections on buttons.

https://datavibe.co.uk/f/toggle-between-charts-in-power-bi

 

I have considered bar charts, in your case it will be card visuals.

 

Thanks,

Pragati

Best Regards,

Pragati Jain

MVP logoDACertAzCert

LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

 

it seems to work when i select from the Bookmarks pane but Not when i click the buttons..

marial16_0-1643968350709.png

marial16_1-1643968504834.png

 

 

Hi @marial16 ,

You should first click the button, then in the Format button pane, turn on the Action option, change the Type to Bookmark, and select the corresponding bookmark you create for each button.

vkalyjmsft_0-1644488060359.png

Then Ctrl+click the button to display result.

vkalyjmsft_1-1644488347791.png

Best Regards,
Community Support Team _ kalyj

 

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

 

It was actually working with the right Ctrl key of the keyboard!

Hi @marial16 ,

 

You need to assign Bookmarks as an Action to the Buttons under format options for Buttons.

 

Thanks,

Pragati

Best Regards,

Pragati Jain

MVP logoDACertAzCert

LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors