Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Combining tables with latest data || user inactivity reporting in M365 & Okta

Hi I have two Tables, one from Okta and one from M365.  Both tables include username, lastlogin and created dates.  I want to report the latest "login" activity from the two tables etc.

 

So far i have created a new Table called Users, and created a link between the two Username columns from the Okta and M365 tables.

I also created some measures to get the Max lastlogin date from each table for each user (i think), using this query.

 

LatestSignin =
MAX (
    CALCULATE ( MAX ( M365[LastLoginDate] ) ),
    CALCULATE ( MAX ( Okta[LastLoginDate] ) )
)

 

Screen Shot 2022-04-15 at 2.21.47 PM.png

 

I obvisouly also tried created a SigninDateTable, but that seems to be based on either M365 or Okta, rather then both??

 

With all of the above, in its current state, i can drag in Username and LatestSignin from the Users table, into a Table Visual and it appears to work fine, but i cannot use the LatestSignin measure in a Bar chart or any other visual.

 

In general i am trying to say "Get all the data from both M365 and Okta Tables, marry it together, then give me the latest dates, so that i can use them in vusuals and more importantly, report on my active & inactive users."

 

Is my model all wrong at a fundamental level, or am i just missing something still?

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Anonymous your model is correct and you are on a right track. You cannot visualize dates as values on the bar chart, only numeric values can be visualized on the bar charts. What do you want to visualize on the bar chart once you have LastSignIn information?

 

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to 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.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


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.

View solution in original post

3 REPLIES 3
parry2k
Super User
Super User

@Anonymous measures cannot be used on the x-axis

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to 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.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


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.

parry2k
Super User
Super User

@Anonymous your model is correct and you are on a right track. You cannot visualize dates as values on the bar chart, only numeric values can be visualized on the bar charts. What do you want to visualize on the bar chart once you have LastSignIn information?

 

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to 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.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


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.

Anonymous
Not applicable

Hi 👋 

with the LastSignin measure, I assume it's a Date data type, so why wouldn't I be able to use it on the X axis for a histogram time based visual.  

I'd like to show last signing date in a time based bar chart

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.