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
PowerRon
Post Patron
Post Patron

Dynamic X-axis

Hi,

 

I have a simple dataset with two attributes:

  1. date
  2. number of transactions

 

I would like to have a bar chart with 'number of transactions' on Y-axis and 'date' on X-axis.
I need a slicer with three options:

  1. years - when selecting this it will show my data in years. So the X-axis only shows years.
  2. 13 months - when selecting this it will show the data of the last 13 months. The X-axis show year and month
  3. 31 days - when selecting this it will show the data of the last 31 days. The X-axis shows month and daynumber

I have been breaking my head in thinking, also in field parameters, but don't know how to do it.

Is there someone that can help me, give me a direction or is there a blog or youtube video that explains something like this in detail?

Thanks
Ron

1 ACCEPTED SOLUTION

Hi @PowerRon ,

 

Consider designing three visuals, using bookmarks to switch their visibility and visual filters.

Output:

vcgaomsft_0-1690780931299.png

Please check the pbix file.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

4 REPLIES 4
PowerRon
Post Patron
Post Patron

Hi @Idrissshatila

 

this is not realy an answer to the question. I know the field parameters documentation

 

Hi @PowerRon ,

 

Consider designing three visuals, using bookmarks to switch their visibility and visual filters.

Output:

vcgaomsft_0-1690780931299.png

Please check the pbix file.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

thnx @v-cgao-msft this is a solution

Idrissshatila
Super User
Super User

Hello @PowerRon ,

 

yes you can learn more about field parameters through this microsoft documentation https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

 

SQLBI documentation https://www.sqlbi.com/articles/fields-parameters-in-power-bi/

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




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.