cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

Identifying Last User

Hi,

 

I am trying to determine the last user who touched each account, but want to filter out any user that has "," in the name. 

 

PowerBI123456_0-1594158596567.png

 

So this would be the needed results:

 

PowerBI123456_1-1594158729125.png

I am dealing with 100,000s or rows. Thanks!!!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User V
Super User V

Re: Identifying Last User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Highlighted
Super User VII
Super User VII

Re: Identifying Last User

@PowerBI123456 try this measure

 

Last User = 
VAR __acct = MAX ( Touch[Account] )
VAR __lastTouchDate = 
CALCULATE ( 
    LASTNONBLANK ( Touch[Date of Action], 1 ), 
    Touch[Account] = __acct, 
    NOT CONTAINSSTRING ( Touch[User], "," ) 
)
RETURN
CALCULATE ( 
    MAX ( Touch[User] ), 
    Touch[Account] = __acct, 
    Touch[Date of Action] = __lastTouchDate 
)

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Highlighted
Helper IV
Helper IV

Re: Identifying Last User

@parry2k Thanks! Will this bring me back the name? I am justt getting a validate response for all them. Also, is there a way to do this in a seperate table? Want to use the values in my visuals. 

Highlighted
Super User V
Super User V

Re: Identifying Last User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Come join us today! Find your favorite faces from the community presenting at the Power Platform Community Conference!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors