Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello
Is there any way to make "_dimension" assigned in this case to "values" can be variable, that is, that as I have selected in a swich / if I take one column or another?
IF r=1 _dimension = "DIM TABLE 1"
IF r=2 _dimension = "DIM TABLE 2"
IF ( r = 1, RELATED('dim1[fieldx]),
If (r = 2, RELATED('dim2[fieldy]),
"unknown value of r"
)
)
Proud to be a Super User! | |
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 54 | |
| 47 | |
| 38 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 82 | |
| 71 | |
| 38 | |
| 28 | |
| 25 |