Forum Discussion
oren
8 years agoHelper III
Differences between 2 Matrix in Power BI
Hi i have 2 metrix that came from the same source each metrix have diffrent data that change based on 2 diffrent filters i did (date filters) now i wand to create anothe metrix that show the difr...
oren
8 years agoHelper III
hi again
attached is an example
what i need is a third Matrix with the diff between the 2 i have- as you can see the 2 matrix are change based on filter (each matrix have different filter)
thanks a lot
oren
v-jiascu-msft
8 years agoMicrosoft Employee
Hi oren,
You can try a single measure with "SAMEPERIODLASTYEAR" like below.
Measure =
VAR thisyear =
SUM ( FactSales[SalesQuantity] )
VAR lastyear =
CALCULATE (
SUM ( FactSales[SalesQuantity] ),
SAMEPERIODLASTYEAR ( DimDate[Datekey] )
)
RETURN
thisyear - lastyear
Best Regards,
Dale