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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ktt777
Helper V
Helper V

Dynamic graph changes as filter changes

Hi all,

 

is it possible to create a graph that change X-axis as the filer change. 

 

For example, if i am select fruit, then the graph show number of Orange and Apple. 

If i select Meat, then it shows Beef and Pork

ktt777_0-1711029405448.png

thanks, here is the link the PBI file :Dynamic Graph.pbix

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

Hi @ktt777 

 

Please try this:

First of all, I create a set of sample because the link you provided can't be opened:

vzhengdxumsft_0-1711072455953.png

Then add a column chart and a slicer

vzhengdxumsft_1-1711072500732.pngvzhengdxumsft_3-1711072530118.png

Select the bookmark in the View pane:

vzhengdxumsft_5-1711072622295.png

And add a bookmark named 'Group' :

vzhengdxumsft_6-1711072679615.png

Click this icon and add a bookmark as 'Type':

vzhengdxumsft_7-1711072753035.png

Next, select bookmark navigator in the Insert pane:

vzhengdxumsft_8-1711072796540.png

So you can change the x-axis by the two bookmark and select by slicer, the result is as follow:

vzhengdxumsft_9-1711072985181.pngvzhengdxumsft_10-1711072996517.png

Best Regards

Zhengdong Xu
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

3 REPLIES 3
v-zhengdxu-msft
Community Support
Community Support

Hi @ktt777 

 

Please try this:

First of all, I create a set of sample because the link you provided can't be opened:

vzhengdxumsft_0-1711072455953.png

Then add a column chart and a slicer

vzhengdxumsft_1-1711072500732.pngvzhengdxumsft_3-1711072530118.png

Select the bookmark in the View pane:

vzhengdxumsft_5-1711072622295.png

And add a bookmark named 'Group' :

vzhengdxumsft_6-1711072679615.png

Click this icon and add a bookmark as 'Type':

vzhengdxumsft_7-1711072753035.png

Next, select bookmark navigator in the Insert pane:

vzhengdxumsft_8-1711072796540.png

So you can change the x-axis by the two bookmark and select by slicer, the result is as follow:

vzhengdxumsft_9-1711072985181.pngvzhengdxumsft_10-1711072996517.png

Best Regards

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

ktt777
Helper V
Helper V

thank you, but i want the graph still show at group type when the fillter does not select for any type. 

the graph and change to product when one of the group type is selected

Bmejia
Solution Supplier
Solution Supplier

You can do this base on how your data is structure.
If all the data like the Group Type and Product is on the same table then you can build your graph base on the Product (Apple, Orange,et..) Then just have your filter build on the group type.

If you have your data in different tables they you need to create a relationship between and do the same as above create the graph base on the product and your filter base on the group type.

If you do not have the product type any where then you would need to create a table that you would need to maintain as you add new products and add the group they belong to. Then create a relationship with the main table and create the graph again base on the products filter on group type.

Bmejia_0-1711045211379.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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