Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi, so I created a column that display "true" or "false" if the conditions are matching.
I would like to know if there is a way to create a variable, X=757_501, for example, and replace every "787_501" by this X in my formula. I would like to do this because I might often want to change this number in the future. And changing the value of 1 variable is faster than changing it 15 times in a formula.
I tried to do this through measures but it didn't work as planned
Thanks !
Solved! Go to Solution.
YES you can use veriables in dax
for example
Query Bugs = Var T = "787_501" Var ret = <put your dax here and replace each instance on text with T> Return ret
Where you need to combine your veriable in a string just use a &
fore example where you have "test 787_501" replace with "test " & T
Proud to be a Super User!
YES you can use veriables in dax
for example
Query Bugs = Var T = "787_501" Var ret = <put your dax here and replace each instance on text with T> Return ret
Where you need to combine your veriable in a string just use a &
fore example where you have "test 787_501" replace with "test " & T
Proud to be a Super User!
The answer was under my eyes since the beginning, you can't even imagine every things I tried knowing this VAR function...
Thanks
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 34 | |
| 33 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 61 | |
| 60 | |
| 39 | |
| 26 | |
| 24 |