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

Be 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

Reply

Monthly Users Count for Total Users and New Users and Expired users

Hello, I am facing issues while calculating the users count,I want a total users start of the each month 

I have data view like

rock_stage_user_0-1692690007251.png

 

from this i want data based on user creation date for total count of users begining of the month.

 

rock_stage_user_1-1692690420001.png

can somebody please help me out.

 

 

3 REPLIES 3
JoeBarry
Solution Sage
Solution Sage

Hi @rock_stage_user 

 

You can try the following. create 2 measures for both. I presume you are using the created_on date as the month/year?

 

Create a running total. from @Greg_Deckler 

 

Running Total = 
VAR _MaxDate =
    MAX ( 'Table'[created_on] )
VAR _Table =
    Filter(ALLSELECTED('Table'), [created_on] <= _MaxDate)
RETURN
    COUNTX(_Table, [USERID])

 

 

 

 

Then Create another measure to get the value of the previous month. You will need a date table here https://learn.microsoft.com/en-us/power-bi/guidance/model-date-tables 

 

Total Users beginning of the month = Calculate([RunningTotal], DATEADD('DIM DATE'[Date]), -1 MONTH)

 

 

For the Users added in Month

 

 

New Users = DISTINCTCOUNT(Table[UserID])

 

 

Add the last two measure to visual

 

JoeBarry_0-1692692956146.png

 

 

Thanks

Joe

Thank you so much, Joe for solution, i have total users count  for previous year also

like in till december 2022 i have total 400 suppose and that will be continue with next year begining like that i need.

 

No problem @rock_stage_user  If you're happy with the solution please mark it as correct

 

Cheers

 

Helpful resources

Announcements
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.