Forum Discussion
difference based on dynamic rank
- 5 years ago
Sorry, you need to use the "name" field in the ALLSELECTED (no the "event" field)
Also, if you are using a field from a dimension Table, you need to use the field in the ALLSELECTED from the corresponding field.
In the following example I'm ranking by sales and calculating the difference vs the smallest sales number.
The field used in the rank measure, the visual, and the [Dif vs rank 1] all come from the Dim Item table (dimension table; not the fact table) The field you use must be consistent throughout. (so either your name field is from the fact table or from the dimension table)
- PaulDBrown5 years agoCommunity Champion
- AuroraNI5 years agoHelper III
hi PaulDBrown thanks, I think they are all consistent as they are from the same table
Here is a link to the PBI file in case I am missing something.https://drive.google.com/file/d/1BKO6MVDCPCKLIJCVRd8jySxc7qV-vBRH/view?usp=sharing
- AuroraNI5 years agoHelper III
hi PaulDBrown thank you very much for you help! It is much appreciated!!