Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello Everyone! Hope you all can help!
I'm trying to create a Switch fomula, but it doesn't seem to be able to find the columns I was to evaulate. Only seems to find any existing measures I have. Below is an example of what I'm trying to create.
Solved! Go to Solution.
@ThisIsIt , You not be able use column from another table like this
NewColumn =
SWITCH ( TableA[ColumnA],
"Mud", "Dirt",
"Beach Sand", "Dirt",
"Clay", "Dirt"
,TableB[ColumnB] //this one wrong
)
Based on relation, check my video for three ways https://www.youtube.com/watch?v=czNHt7UXIe8
example
related(TableB[ColumnB])
maxx(relatedtable(TableB),TableB[ColumnB])
Two more in video
@ThisIsIt , You not be able use column from another table like this
NewColumn =
SWITCH ( TableA[ColumnA],
"Mud", "Dirt",
"Beach Sand", "Dirt",
"Clay", "Dirt"
,TableB[ColumnB] //this one wrong
)
Based on relation, check my video for three ways https://www.youtube.com/watch?v=czNHt7UXIe8
example
related(TableB[ColumnB])
maxx(relatedtable(TableB),TableB[ColumnB])
Two more in video
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |