Forum Discussion

orana's avatar
orana
Icon for Helper I rankHelper I
3 years ago

Fiscal Year measure

I created the below measure and used it to create a table that shows the customer name and the measure below. However, I want the measure below to exclude customers with no sales in FY22 (var a) or FY22 (var b).
 
FY23Q1 subtract FY22Q1 =
var a = CALCULATE(sum('Table'[Sales]), 'Table'[Fiscal Year] = 2023, Table[Fiscal Quarter]="Q1")
var b = CALCULATE(sum('Table'[Sales]),'Table'[Fiscal Year] = 2022,Table[Fiscal Quarter]="Q1")
return
a - b

1 Reply