Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
likhitha2705
Frequent Visitor

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])))

likhitha2705_0-1698303677017.png
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
likhitha2705_1-1698303801860.pnglikhitha2705_2-1698303970510.png

My required output is shown above.
TIA

1 REPLY 1
lbendlin
Super User
Super User

OFFSET doesn't care where its table argument comes from. It is your responsibility to provide that, in whatever way.

 

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.