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
Hi everybody
I have the following meassure:
SelectedDates = CALCULATE(CONCATENATEX(VALUES(Date[Dates]),Date[Dates]," / "),PARALLELPERIOD(Date[Dates],-12,MONTH))
For example, when I select the following non-consecutive dates: 01-01-2022, 02-01-2022, 05-01-2022
I expected to get the following result:"01-01-2021 / 02-01-2021 / 05-01-2021"
But I get the following result: "01-01-2021 / 02-01-2021 / 03-01-2021 / 04-01-2021 / 05-01-2021"
I have tried to replace PARALLELPERIOD with DATEADD, but I get an error because the dates are not consecutives.
I've tried several solutions including variables without success.
I'm still a beginner. If anyone has any idea how to solve this, I'd really appreciate it.
LJ.
Solved! Go to Solution.
This was exactly what I need. Thank you.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |