Showing results for 
Search instead for 
Did you mean: 
New Member

Mesure to filter time periods

Hello guys,


I think i had a solution here 1 year ago but i lost my pbix. Now trying to create it again.

I want to create a slicer in addition to slicers year-month.

In this slicer I want to have:

  • Month
  • YTD
  • previous 6 months
  • previous 12 months
  • Previous month
  • YTD Sameperiodlastyear
  • 12 months for previous period


All proposed solutions on youtube give me the dax with Sum('Sales'[Ammount]) but I want to apply the periods to all different mesures without creating DAX for each one.


Now I'm creating my different sum mesures, than I will put in the new FieldParameter feature, and use this FieldParameter as "Sum('Sales'[Ammount])" in my timeperiods DAX, I could create a calculation group in Tabular editor but trial is finished.

However I'm sure there is a much more elegant and simple solution, all I need is just to filter the DateTable.


Thank you for any advice


Super User
Super User

@PIG_BENIS , calculation group is best in this case


Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display :

Helpful resources


2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.

Top Solution Authors
Top Kudoed Authors