March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a report where I need to show the contact details of the active and inactive users on a web site.
I've managed to use the 'last login date' field and the "Relative date" filter to show the users who had logged in during the past 12 months. These are considered active users.
Filter type: Relative date
- is in the past
- 12
- months, include today
I cannot seem to figure out how to show the users who had 'not' logged in during the past 12 months. Ie. I want to show the list of users and exclude the ones with a 'last login date' that falls within the last 12 months.
Any advice?
Solved! Go to Solution.
Thanks Tom, I'm a beginner when it comes to Power BI. Any tips on how I could create the IsActiveMeasure?
Hi @adadeacon ,
Maybe something like this? 🙂
Here the DAX:
IsActiveMeasure = IF ( SELECTEDVALUE ( Table[Date] ) >= DATE ( YEAR (TODAY() ) -1, MONTH ( TODAY() ), DAY( TODAY() ) ), 1, 0 )
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! |
#proudtobeasuperuser |
hi @adadeacon ,
In this case I'd probably create a measure like IsActiveUser that returns a 1 or true if it is one and a 0 or false if it is not. Then you can use that flag in the filter pane.
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! |
#proudtobeasuperuser |
Thanks Tom, I'm a beginner when it comes to Power BI. Any tips on how I could create the IsActiveMeasure?
Hi @adadeacon ,
Maybe something like this? 🙂
Here the DAX:
IsActiveMeasure = IF ( SELECTEDVALUE ( Table[Date] ) >= DATE ( YEAR (TODAY() ) -1, MONTH ( TODAY() ), DAY( TODAY() ) ), 1, 0 )
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! |
#proudtobeasuperuser |
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
127 | |
92 | |
80 | |
70 | |
53 |
User | Count |
---|---|
206 | |
144 | |
102 | |
81 | |
72 |