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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I am trying to compare PY revenue on reservations/booking data, but I want to exclude all the reservations that were booked within in year of the current date of the report being run. This is the formula im using in a visualization, but it shows zero values. 😞
PY YTD Total Revenue = sumx(
filter(Reservations,Reservations[Booking Date]<[Booking date PY]),[PY Total Revenue]
)
The measures within this formula are shown below:
Booking date PY = DATE(YEAR(NOW())-1,MONTH(NOW()), DAY(NOW()))
PY Total Revenue = calculate([Total Revenue],SAMEPERIODLASTYEAR('Calendar'[Date]))
Total Revenue = sumx(filter(Reservations,Reservations[Notes2]="Reserved"),Reservations[Revenue ex VAT])
Hereis the link to my Power BI file:
Does anyone know what im doing wrong?
Many thanks!
HI @droupa ,
PLease try to use the following DAX query:
PY YTD Total Revenue = sumx(
filter('Calendar','Calendar'[Date]<[Booking date PY]),[PY Total Revenue]
)Based on my test, we'd better not using multiple date column in this scenario.
Best Regards,
Teige
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 60 | |
| 45 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 106 | |
| 106 | |
| 40 | |
| 29 | |
| 28 |