Forum Discussion

likhitha2705's avatar
likhitha2705
Frequent Visitor
2 years ago

How to use OFFSET function with multiple dimensions from multiple Dimension Tables.

Hello All,
         I'm using OFFSET DAX Function,it works fine with single table.
The DAX is as follows:

Offset =
CALCULATE([CurYrSales],OFFSET(-1,allselected(Customers)),OFFSET(-1,allselected(Customers[CustomerID])))


It works fine with single dimesion table,if we have multiple columns(From different dimension tables),Here CustomerID is from Customers Table and Date is from Date Dimension Table.The ALLSELECTED says all fields should be from the same table

My required output is shown above.
TIA

1 Reply