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.
Hi Guys.
Looking for a way to highlight the job type (text) when the same employee changes the job title between the dates specified, and finally calculating the total number. For example:
Based on the information above, out of 4 employees, 3 of them changed title between the dates specified.
Solved! Go to Solution.
Hi Azakir
This is a great opportunity to use the new OffSet function in PowerBI! Previously, this would have been quite hard to achieve. As it is not officially release, there is no documentation or intellisense, but I have been using it for sometime so worked out a way to do it.
First, you need to create one field as a sort order. EG
You can see now it is easy to make a comparison on the "current" rows role, and the offset role. this can then be used to return a value that can be used in conditional formatting for the cell.
This measure looks like
Click "fx" and use this comparison measure to set the colour
This is the result:
Hope this helps
Pi
Hi Azakir
This is a great opportunity to use the new OffSet function in PowerBI! Previously, this would have been quite hard to achieve. As it is not officially release, there is no documentation or intellisense, but I have been using it for sometime so worked out a way to do it.
First, you need to create one field as a sort order. EG
You can see now it is easy to make a comparison on the "current" rows role, and the offset role. this can then be used to return a value that can be used in conditional formatting for the cell.
This measure looks like
Click "fx" and use this comparison measure to set the colour
This is the result:
Hope this helps
Pi
Hi @pi_eye
thank you so much. This is such a great solution alongwith the explanation. I really appreciate the time you took to not only provide me with a solution, but also explain it in such a manner, that it's all clear in my mind. This solution worked wonders for me so thank you so much for that.
You're welcome. It is a new function and I was going to do some research on it anyway - so it is learning for me too!
Forgot to mention - you can sum the "comparison calc" above to get the total number of changes, as the values are 1 and 0!
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 |
---|---|
98 | |
96 | |
75 | |
71 | |
64 |
User | Count |
---|---|
143 | |
109 | |
103 | |
82 | |
74 |