Link to home
Create AccountLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Power BI DAX Two Equals signs

Hi. The following Power BI DAX statememt is a little confusing.

Why are there 2 equals signs


TOTAL SALES 2019 = var currentyear = SELECTEDVALUE('CALENDAR'[Year],year(today())) return CALCULATE([TOTAL SALES],'CALENDAR'[Year]=currentyear-2) 

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Cédric Tielemans
Cédric Tielemans
Flag of Belgium image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer