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
PietroFarias
Resolver II
Resolver II

Measure value for year and month per year

My database has sales from 2015 through to the current year.I want to use a timeline slicer to filter the date of the current year, for example from March 25 to April 4. In a table view would have the year column, where would return the sale each year from March 25 to April 4.How do I measure this in DAX?I can not find the solution. Can someone help me?

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @PietroFarias 

For your requirement, The main demand is a month-day column for filter.

As you said, when March 25 to April 4, unless you filter every year period, otherwise, it will have only one year.

So although you could ignore the year in measure calculation, but in the table view, it only shows one year.

or the timeline slicer is anther date column that has no relationship with the basic data table.

 

So you could try this way:

Add a month-day column based on date column for timeline slicer

Dateslicer = DATE(1990,MONTH(Sales[Date]),DAY(DAY(Sales[Date])))

Then drag this column into timeline slicer.

Just create a simple  SUM measure and drag it with year column into a table view.

 

Best Regards,

Lin

 

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

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.