Forum Discussion
using RANKX and allselected together with visual filters
- 7 years ago
I ended up solving this issue. What i had to do was create a dimension table on the activities (but dont create a relationship back to the job activities). Then used this as the filter to apply for rank and using the values option in RANKX to actifically blank out the unselected stages. Works well, but computationally quite hard on the cpu.
RANKX( FILTER( ALL(ETOs[Job Number]), [Job Last Stage] IN VALUES('Activities Table'[ActivityDesc])), [Total ETOs To Date], IF([Job Last Stage] IN VALUES('Activities Table'[ActivityDesc]), [Total ETOs To Date], BLANK()))
How do I share the pbix? Can i sent it to your email?
Hi,
Upload to Google Drive and share the download link here.
- jlinhenley7 years agoFrequent Visitor
- Ashish_Mathur7 years agoSuper User
Hi,
I don't think i have solved it but you may try this. Remove the condition from the Job Last stage filter. Revise your measure to
=RANKX(CALCULATETABLE(ALL(ETOs[JobNo]),FILTER(VALUES(ETOs[JobNo]),[Job Last Stage]<>"Fixing")), [Total ETOs To Date])
- jlinhenley7 years agoFrequent Visitor
Thanks for taking a look. I feel there must be a way to generate the rankings without using ALLSELECTED.
In any case, this seemed like it should be a lot easier..