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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have a matrix in power BI Desktop like the following one (real data deleted due to confidentiality reasons):
To build this table I used the following DAX:
Solved! Go to Solution.
Hi @antongg7 ,
You could try below measure:-
CurrentYearValue =
CALCULATE(
[Valores P&L Cuenta Explotación],
FILTER(
ALL('DIM Calendar'),
'DIM Calendar'[Year] = SELECTEDVALUE(Years[Value])
)
)
PreviousYearValue =
CALCULATE(
[Valores P&L Cuenta Explotación],
FILTER(
ALL('DIM Calendar'),
'DIM Calendar'[Year] = SELECTEDVALUE(Years[Value]) - 1
)
)
PercentChange =
IF(
ISBLANK([PreviousYearValue]),
BLANK(),
DIVIDE([CurrentYearValue] - [PreviousYearValue], [PreviousYearValue], 0)
)
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @antongg7 ,
You could try below measure:-
CurrentYearValue =
CALCULATE(
[Valores P&L Cuenta Explotación],
FILTER(
ALL('DIM Calendar'),
'DIM Calendar'[Year] = SELECTEDVALUE(Years[Value])
)
)
PreviousYearValue =
CALCULATE(
[Valores P&L Cuenta Explotación],
FILTER(
ALL('DIM Calendar'),
'DIM Calendar'[Year] = SELECTEDVALUE(Years[Value]) - 1
)
)
PercentChange =
IF(
ISBLANK([PreviousYearValue]),
BLANK(),
DIVIDE([CurrentYearValue] - [PreviousYearValue], [PreviousYearValue], 0)
)
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin