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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have measure with metrics for various campaigns in PowerBI. Can I only compare certain campaigns? So, for example, a campaign that ran from March 1st to April 20th, 2023 with one that ran from March 5th to April 24th, 2024?
Solved! Go to Solution.
Hi @Broeselchen
Ohh i understood.
Try below video. you will get a exact solution that you are looking for.
https://www.youtube.com/watch?v=TF0lPIYjJfs
https://www.youtube.com/watch?v=hu_fOtZDJwU&t=350s
https://www.youtube.com/watch?v=knXFVf2ipro
I hope I answered your question!
But I don't want the "same date range last period". I need an other period in the last year then in the current year. Maybe the comparison between May 2023 and June 2024.
Hi @Broeselchen
Ohh i understood.
Try below video. you will get a exact solution that you are looking for.
https://www.youtube.com/watch?v=TF0lPIYjJfs
https://www.youtube.com/watch?v=hu_fOtZDJwU&t=350s
https://www.youtube.com/watch?v=knXFVf2ipro
I hope I answered your question!
That's it! Thank you so much!!!
I need something like this:
These are the differents with "sameperiod last year", absolutely and in percent. I need various periods. But without making a new measure for every period.
hi @Broeselchen
Please try this
Same Date range last period =
var _diff = datediff(MIN('Date'[date]),max('Date'[date]),DAY)
var _p_st_date = MINX('Date',DATEADD('Date'[date],-1*_diff,Day))-1
var _p_end_date = MAXX('Date',DATEADD('Date'[date],-1*_diff,Day))-1
Return
CALCULATE(sum(Sales[Sales Amount]),all('Date'[date]),'Date'[date]>=_p_st_date && 'Date'[date]<= _p_end_date
)
I hope it may give you dynamic previous previod calculation!
Hi @Broeselchen
Yes. you can compare the various campaigns it completly depends on how you want to show different comparison..
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 51 | |
| 41 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 135 | |
| 110 | |
| 50 | |
| 31 | |
| 29 |