Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Here is my structure.
Here is my "setup varejista" table
What I am trying to do :
Create a calculated column ("N5MP") in my product table that checks the setup varejista[#N] and calculates the field based on its value. And here is my product table structure:
Here is what I came up with so far, but it does not work. it always returns the else case of the switch
Not sure aboute the variable setting, not very good with DAX, because of the data structure I cannot acces the "setup varejista" from the product table in order to do the calculation, So i tought agoint checking it some other way and then bringing that value to my table...
What am I doing wrong/ how do I do this?
@Anonymous
The problem is that there is no context for the SELECTEDVALUE expression (so it sees no value).
Why do you need this as a Calculated column? You could easily do the calculation in a measure for a visual.
Proud to be a Super User!
Paul on Linkedin.
User | Count |
---|---|
11 | |
9 | |
8 | |
7 | |
5 |
User | Count |
---|---|
23 | |
15 | |
15 | |
10 | |
7 |