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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
elguestca1
Advocate I
Advocate I

Dynamic measures in chart

Hello,

is there a way to lets say make a chart by date with several measures, but only one at a time. Like I chose to see sum by date, I see sum by date, I choose to see count by date, I see count by date.  I mean like using a slicer with measures. I know about parameter, but since I am connecting to Power BI Dataset, I can not create columns or use parameter. Maybe it is possible to do it somehow with buttons? Or maybe there is other way to do it? 

Thank you.

1 ACCEPTED SOLUTION
Dhairya
Super User
Super User

Hey @elguestca1 
If you are not able to use the field parameter (which is the best possible way) you have a workaround of using Bookmarks.

you have to create seperate bookmarks for all individual calculations you want to display at a time and you have to create same number of button as number bookmarks and set respective action.

for example

bookmark 1 (sum by date)
visual - sum by date (show) & count by date(hide)

bookmark 2 (count by date)
visual - count by date(show) & sum by date (hide)

button 1 (for sum by date)
action:  navigate to bookmark 1 (sum by date)

button 2 (for count by date)
action:  navigate to bookmark 2 (count by date)


If this helps you then please mark my solution as accepted so that others can find it quickly when they face similar issue. Thank You!

View solution in original post

2 REPLIES 2
Dhairya
Super User
Super User

Hey @elguestca1 
If you are not able to use the field parameter (which is the best possible way) you have a workaround of using Bookmarks.

you have to create seperate bookmarks for all individual calculations you want to display at a time and you have to create same number of button as number bookmarks and set respective action.

for example

bookmark 1 (sum by date)
visual - sum by date (show) & count by date(hide)

bookmark 2 (count by date)
visual - count by date(show) & sum by date (hide)

button 1 (for sum by date)
action:  navigate to bookmark 1 (sum by date)

button 2 (for count by date)
action:  navigate to bookmark 2 (count by date)


If this helps you then please mark my solution as accepted so that others can find it quickly when they face similar issue. Thank You!

Hello, @Dhairya,

Great workaround. Thank you very much!

Helpful resources

Announcements
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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Top Kudoed Authors