Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
In a column there are few categories. Each category has some lookup values in each dimension table. Would like to pull the related lookup value from the respective dimension table. Below is the scenario. I want to create a column in fact table same like highlighted in orange colour. Please advise the syntax for the calculated column.
Solved! Go to Solution.
@jack555 Maybe:
Column in Fact Table =
VAR __Label = [Label]
RETURN
SWITCH([ID],
"ED",MAXX(FILTER('ED Dimension',[ID] = __Label),[Label]),
"IP",MAXX(FILTER('IP Dimension',[ID] = __Label),[Label]),
"OP",MAXX(FILTER('OP Dimension',[ID] = __Label),[Label]),
BLANK(),
)
@jack555 Maybe:
Column in Fact Table =
VAR __Label = [Label]
RETURN
SWITCH([ID],
"ED",MAXX(FILTER('ED Dimension',[ID] = __Label),[Label]),
"IP",MAXX(FILTER('IP Dimension',[ID] = __Label),[Label]),
"OP",MAXX(FILTER('OP Dimension',[ID] = __Label),[Label]),
BLANK(),
)
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 20 | |
| 20 | |
| 12 |
| User | Count |
|---|---|
| 63 | |
| 56 | |
| 47 | |
| 42 | |
| 37 |