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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
PBI_newuser
Post Prodigy
Post Prodigy

Lookup Value from Dimension table

Hi, how to create a DAX to have column "Version" and "Upgrade" in Fact table?

 

Dimension Table:

ProductAttribute NameAttribute Value
AVersionV-1
AUpgradeU-2
BVersionV-2
BUpgradeU-3
CVersionV-1
CUpgradeU-1

 

Fact Table:

ProductAccountCountryVersionUpgrade
ACompany XUSAV-1U-2
BCompany YCanadaV-2U-3
CCompany ZGermanyV-1U-1
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @PBI_newuser 

Please try

Version = CALCULATE ( MAX ( TableA[Attribute Value] ),TableA[Attribute Name] = "Version" )
Upgrade = CALCULATE ( MAX ( TableA[Attribute Value] ), TableA[Attribute Name] = "Upgrade" ) 

1.png2.png

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @PBI_newuser 

Please try

Version = CALCULATE ( MAX ( TableA[Attribute Value] ),TableA[Attribute Name] = "Version" )
Upgrade = CALCULATE ( MAX ( TableA[Attribute Value] ), TableA[Attribute Name] = "Upgrade" ) 

1.png2.png

ribisht17
Super User
Super User

Hi @ribisht17 , i am not sure how to create the column as I need to pull the attribute name as column name.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.