Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, how to create a DAX to have column "Version" and "Upgrade" in Fact table?
Dimension Table:
| Product | Attribute Name | Attribute Value |
| A | Version | V-1 |
| A | Upgrade | U-2 |
| B | Version | V-2 |
| B | Upgrade | U-3 |
| C | Version | V-1 |
| C | Upgrade | U-1 |
Fact Table:
| Product | Account | Country | Version | Upgrade |
| A | Company X | USA | V-1 | U-2 |
| B | Company Y | Canada | V-2 | U-3 |
| C | Company Z | Germany | V-1 | U-1 |
Solved! Go to Solution.
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" ) 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" ) Hi @ribisht17 , i am not sure how to create the column as I need to pull the attribute name as column name.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 36 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 74 | |
| 66 | |
| 65 |