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 IV
Super User IV

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 IV
Super User IV

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 IV
Super User IV

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors