Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Good day all,
Not all to long ago, i had some help with creating a measure to rank workorders by customer. This measure is as follows:
Rank Measure =
RANKX(
FILTER(
ALL('Table'),
[CustomerId]=MAX('Table'[CustomerId])
),
CALCULATE(MAX('Table'[WorkorderID])),
,ASC
)
Now i want to use the same functionality, but instead of a measure, i want it in a column so that i can actually use the value. And with this, i mean a column in the data model and not in a visual. This so i can check if a customer calls more than once, which option in the voice menu they pick first, 2nd, third, etc.
How would i do that?
Solved! Go to Solution.
@decarsul , the same one as new column
Rank Measure =
RANKX(
FILTER(
('Table'),
[CustomerId]=earlier('Table'[CustomerId])
),
'Table'[WorkorderID],
,ASC
)
@decarsul , the same one as new column
Rank Measure =
RANKX(
FILTER(
('Table'),
[CustomerId]=earlier('Table'[CustomerId])
),
'Table'[WorkorderID],
,ASC
)
Sneaky, thats not the same one, that code's been editted. but that works. Thanks!
If it were only that simple . . .
When i do that, i get an error message. got to translate it from dutch, but it says something like: 'A circulair dependancy has been detected 'table' rank measure', 'table' rank measure','table' rank measure'
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |