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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
AlanP514
Helper V
Helper V

_Dax Measure for Count of user based on the Access time

Spoiler
Table 1  
User ID  
123451 Selected from the Slicer
678910 Non Selected
Spoiler
Table 2      
Acess Time  Component Name  Desktop Mobile
09-02-2023 Home 0 3
09-02-2023 Payment  1 0
09-02-2023 Account 0 5
09-02-2023 Loan 1 0
09-02-2023 Details 0 3
08-02-2023 Home 1 0
08-02-2023 Payment  0 0
08-02-2023 Account 1 0
07-02-2023 Home 1 0
07-02-2023 Payment    1
06-02-2023 Account 1  
06-02-2023 Loan   1
06-02-2023 Details 1  
05-02-2023 Home 1  
05-02-2023 Payment    1
04-02-2023 Account 1  
Spoiler
Output  Pivot table            
User Septmber August July June May April
123451 5 3 2 3 2 1

Hai 
Actual data is the 2nd Tag
I am trying to get count of of user based on the login time
In the first box that is the table 1 , from there i have selected one user id
expected output table ie.(3rd) tag is showing each months from the current month how many times selected user logged based on the access time

Appreacite help on this

1 ACCEPTED SOLUTION
JoeBarry
Solution Sage
Solution Sage

Hi @AlanP514 

 

I presume there is userid in Table2?

 

Logins = SUMX(Table2, Table2[Desktop]+ Table2[Mobile])

 

In the Matrix add the Month to the column field and the user to the row and then the measure to the values

 

Thanks

Joe

 

If this post helps, then please Accept it as the solution

View solution in original post

1 REPLY 1
JoeBarry
Solution Sage
Solution Sage

Hi @AlanP514 

 

I presume there is userid in Table2?

 

Logins = SUMX(Table2, Table2[Desktop]+ Table2[Mobile])

 

In the Matrix add the Month to the column field and the user to the row and then the measure to the values

 

Thanks

Joe

 

If this post helps, then please Accept it as the solution

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.