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
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

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.

Top Solution Authors