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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

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

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , calculation group is best in this case

 

Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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