Hi,
I have a YEAR slicer in my Power BI and following DAX formula
IsFilter=isfiltered(SALESDATA[YEAR])
=if([IsFIlter],sum(SALESDATA[SALES]))
the YEAR slicer having contents like 2015,2016,2017
can i change the formula into
if I select 2015 in YEAR slicer show the result of =CALUCLATE(sum(SALESDATA[SALES]),SALESDATA[YEAR]="2015")
if i select 2016 in YEAR slicer show the result of =CALUCLATE(sum(SALESDATA[SALES]),SALESDATA[YEAR]="2016") and
if i select 2017 in YEAR slicer show the result of =CALUCLATE(sum(SALESDATA[SALES]),SALESDATA[YEAR]="2017")
I have a YEAR slicer in my Power BI and following DAX formula
IsFilter=isfiltered(SALESDATA[YEAR])
=if([IsFIlter],sum(SALESDATA[SALES]))
the YEAR slicer having contents like 2015,2016,2017
can i change the formula into
if I select 2015 in YEAR slicer show the result of =CALUCLATE(sum(SALESDATA[SALES]),SALESDATA[YEAR]="2015")
if i select 2016 in YEAR slicer show the result of =CALUCLATE(sum(SALESDATA[SALES]),SALESDATA[YEAR]="2016") and
if i select 2017 in YEAR slicer show the result of =CALUCLATE(sum(SALESDATA[SALES]),SALESDATA[YEAR]="2017")