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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Using a slicer of date hierarchy to select the input on a graph

Hi,

 

I would like to use a slicer which includes a date hierarchy that would dynamically change the input of a graph.

If day is selected, I would like to display the data on day level, and if month or year are selected I would like to show the month aggregate sum/average. 

If month/year is selected the data would sum/aggregate on month levelIf month/year is selected the data would sum/aggregate on month levelIf day is selected, I would like to show data on a day level.If day is selected, I would like to show data on a day level.

 

Thanks in advance!

1 ACCEPTED SOLUTION
miTutorials
Super User
Super User

You can achieve this using the What If parameter from the modelling tab - For a detailed walkthrough please do check out the video below.

 

New Feature: Slicer to choose which columns to display on chart using Fields Parameter in PowerBI (y...

 

Best regards,

Ismail | MiTutorials

🎥 MiTutorials on YouTube Explore over 200+ Power BI tutorials and enhance your skills!

View solution in original post

3 REPLIES 3
miTutorials
Super User
Super User

You can achieve this using the What If parameter from the modelling tab - For a detailed walkthrough please do check out the video below.

 

New Feature: Slicer to choose which columns to display on chart using Fields Parameter in PowerBI (y...

 

Best regards,

Ismail | MiTutorials

🎥 MiTutorials on YouTube Explore over 200+ Power BI tutorials and enhance your skills!

Anonymous
Not applicable

Now I have the problem that if i want to filter on day, that the data is aggregated at the day number level, instead of a specified month, what is the easiest way to solve this? I use multiple tables with relations.

Anonymous
Not applicable

Thank you very much!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors