Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi.
I would like to know if this calculated column in DAX is possible to be achieved in Advanced Editor (M language):
Solved! Go to Solution.
I think the custom column would look something like this:
Table.SelectRows(AuxTable, (row) => row[start_date] <= [date] and row[end_date] >= [date])[value]{0}
In the above, row is just a variable name. I could have used x or r or _ or whatever.
I think the custom column would look something like this:
Table.SelectRows(AuxTable, (row) => row[start_date] <= [date] and row[end_date] >= [date])[value]{0}
In the above, row is just a variable name. I could have used x or r or _ or whatever.
Perfect. Thank you very much.
Is there always a unique value satisfying those conditions? VALUES will return a list rather than a single value if not.
Yes, guaranteed always a single value per satisfied conditions.
Hey @jfontoura ,
from a first look you should be able to do that in M.
There you might have to do a join (Merge queries).
User | Count |
---|---|
84 | |
76 | |
70 | |
48 | |
39 |
User | Count |
---|---|
111 | |
56 | |
51 | |
42 | |
41 |