Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
I currently have a gauge to show how our company is doing against Previous Year, no problem. However they have also asked to look at current data against what we have in 2019 (As this was the last year with decent/full data). That's fine for the current year as i've done DATEADD, -2, year. However if the company look at 2020, this will show 2018s data rather than 2019. I want to do something like Calculate(Bookings, EnquiryDate contains 2019) but not sure on the DAX required or if its even possible
Thanks
Sam
Solved! Go to Solution.
@SRobbo1990 , Try like
Calculate([Bookings],year([EnquiryDate])= 2019)
or
Calculate([Bookings],filter(all(Table[EnquiryDate]), year([EnquiryDate])= 2019))
or
Calculate([Bookings],filter(all(Table), year([EnquiryDate])= 2019))
@SRobbo1990 , Try like
Calculate([Bookings],year([EnquiryDate])= 2019)
or
Calculate([Bookings],filter(all(Table[EnquiryDate]), year([EnquiryDate])= 2019))
or
Calculate([Bookings],filter(all(Table), year([EnquiryDate])= 2019))
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.