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
MikeGeno
Frequent Visitor

Automatically determine which fiscal months are YTD across years

Below is a sample from my Date table.  Our fiscal year runs April - March.  I have 4 years worth of data.  My data is in the "Sales Month" format, I do not receive actual days, just the month in that format.

 

When I loaded my August data a few days ago, my YTD for this year and prior years would be April - August.  When I did this in Excel I would add a column to my date table and each month I would add a Y to the new month in all 4 years that designated YTD and I would filter on it.  Is there a way to do something like this, but automatically based on the last sales month loaded?  TYIA.

 

MikeGeno_0-1696450112488.png

 

1 REPLY 1
lbendlin
Super User
Super User

Yes, you can do that with a calculated column (if you have daily import mode refreshes) or with measures.

 

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.