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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
dentonblake
Helper II
Helper II

Trailing 12-Month and Previous 12-Month Analysis

Power BI All-Stars:

 

I have two measures which generate a current trailing 12-months of sales revenue and a previous 12-months of sales revenue (total of 24 trailing months of sales) - what I'm trying to acommplish, is a measure that will only return current trailing 12-month and previous trailing 12-month IF all 24 months for a particular store have sales data - so, if there are any blanks in the 24-month period the result will be null/false.

 

Thank you!

 

~db

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @dentonblake,

 

Share some sample data and detail contents will help us clarify your scenario.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Here's a small sample / based on this data, the Omni would not be included in the two trailing 12-mont cumulatives becuase there's not a complete set of historical data (24 months ) but TruFire would be because there are 24 months of trailing data.

 

Capture.JPG

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.