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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
MagnusSthlm
Helper I
Helper I

Creating dynamic quarters

Hi!

 

My customer has four charts, one for each quarter. They want to select Year and Quarter from a dropdown for example 2018-Q4 as start quarter. The second chart should then show show data from 2019-Q1 and so on. 

 

I tested several things to achieve this but I'm stuck. I created four columns in my date table and they all show the correct year and quarters. If the first quarter is 2018-04 the second quarter is 2019-01. But when I select the Year Quarter on the dropdown all the charts get filtered on the same data. 

 

I can't use a measure here or can I? A measure can't be on a legend. If I could I could use Calculate and ALL to remove all filters.

 

Anyone done this before?

 

/Magnus

1 ACCEPTED SOLUTION

Hi! 

 

Thanks for your reply. I actually solved it yesterday.

 

In my date table I created a Year - Quarter column. Then I manually created a new table, called it Year Quarter Selector. It had four columns, first column is the year - quarter the user selects. Then the next column is the following year - quarter. So first could be 2018-Q4 and the second would be 2019-Q1 and so on. 

 

Then I created  four measures that used SELECTEDVALUE from my selector. I used them as filters in the chart. 

 

I can clarify with some code if someone is interested.

 

/Magnus

 

View solution in original post

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@MagnusSthlm,

 

You may refer to the following post.

http://community.powerbi.com/t5/Desktop/Split-amp-filter-data-from-one-table-into-multiple-based-on-...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi! 

 

Thanks for your reply. I actually solved it yesterday.

 

In my date table I created a Year - Quarter column. Then I manually created a new table, called it Year Quarter Selector. It had four columns, first column is the year - quarter the user selects. Then the next column is the following year - quarter. So first could be 2018-Q4 and the second would be 2019-Q1 and so on. 

 

Then I created  four measures that used SELECTEDVALUE from my selector. I used them as filters in the chart. 

 

I can clarify with some code if someone is interested.

 

/Magnus

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.