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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
algomine
New Member

Showing Shortcut Dimension 3 in Purchase Invoice Line table

Hello,

 

I have these two tables:

1. Posted Purchase Invoice Lines: This one includes a field called Dimension_Set_ID. This table also contains ShortcutDimension1 (called KÖLTSÉGHELY) and ShortcutDimension2 (called PROJEKT):

algomine_1-1626731996562.png

 

 

2. Dimension Set entries: This table also contains the Dimension_Set_ID field. It captures all the unique dimension value combinations. For example, I have three dimension codes set in BC, and unique dimension value combination gets a new number (called Dimension_Set_ID)

algomine_0-1626731730093.png

 

My goal is to display the ShortcutDimension3 (which is called AKTIVÁLÁSI KÓD in the DimensionSetID table) in the PostedPurchaseLine table. I have made an attempt by using LOOKUPVALUE:

ShortcutDimension3Code =
LOOKUPVALUE(
'bc DimensionSetEntries'[Aktivalasi_Kod],
'bc DimensionSetEntries'[Dimension_Set_ID],'bc PostedPurchaseInvoiceLineExtended'[DimensionSetID])
I have added this column which would only display the ShortcutDimension3 code values, but no use:
 
 
But I get this error: "A table of multiple values was supplied where a single value was expected."
 
The problem is that there is many-to-many relationship between the two tables (DimensionSetID), so I could not establish a relationship:
algomine_2-1626732382675.png

 

 Can someone help me how I can display the ShortcutDimension3 values in the table PostedPurchaselines? I am stuck with this for a while now.
 
Thank you!

 

1 REPLY 1
Anonymous
Not applicable

Makes little sense to do such things in DAX. Do it in Power Query, where this calculation truly belongs.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.