Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 36 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |