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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Anonymous
Not applicable

Hi @dentonblake,

 

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

 

Regards,

Xiaoxin Sheng

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.