This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I am trying to evaluate sales trends in a particular geographical area (city) within a particular timeframe (usually 30 days) based on a particular event. I.e. if a sale is made to a particular entity, how are sales effected in the region in the next 30 days. Looking on how to build and automate this process so I can evaluate the effects in multiple areas.
Hi @Anonymous,
You can try to use analysis panel functions to generate a trendline based on your records, please take a look at the following link about analysis panel features:
Use the Analytics pane in Power BI Desktop
If above not help, you can also consider manually write a measure formula to calculate the trend. Please share some dummy data with expected result them we can test to coding formula on it.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
@Anonymous , You have try meaures like
Rolling 30 day = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],MAX(Sales[Sales Date]),-30,Day))
or
Rolling 30 day = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],MAX(Sales[Sales Date]),-30,Day), allexcept(Sales,sales[region]))
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Hi,
Please share some data and show the expected result.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 25 | |
| 22 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 51 | |
| 47 | |
| 23 | |
| 18 | |
| 18 |