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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
nick9one1
Helper III
Helper III

average distinct users per month

I have a table that contains information on users accessing a webpage. 


I'm using the following measure to get unique users per day (this is used for the line chart and is correct).

 

 

 

count_of_customer = 
    COUNTROWS (
       SUMMARIZE ( 'cr20b_commscampusauditlogs3', 'cr20b_commscampusauditlogs3'[UserId], 'cr20b_commscampusauditlogs3'[CreationTime].[Date])
    )

 

 

 


I'd also like to include a table that has the monthly average. 

nick9one1_0-1701430380085.png

 

 

I have tried creating a second measure but using [CreationTime].[Month] instad of Day. This is in the table on the right, showing 622 users.  But the value is clearly wrong, as the max unique users per day is around 340. 

 

Can anyone suggest what I have done wrong?

1 ACCEPTED SOLUTION
swikritee_p
Resolver II
Resolver II

@nick9one1 ,  Create a Date table and join the Date (Without time) with Date of date table and create a measure given below 

 

Avg of Month =
calculate(
Averagex(Values('Date'[Year Month]) , calculate(
COUNTROWS (
SUMMARIZE ( 'cr20b_commscampusauditlogs3', 'cr20b_commscampusauditlogs3'[UserId], 'Date'[Date])
))), removefilters('date'))

View solution in original post

1 REPLY 1
swikritee_p
Resolver II
Resolver II

@nick9one1 ,  Create a Date table and join the Date (Without time) with Date of date table and create a measure given below 

 

Avg of Month =
calculate(
Averagex(Values('Date'[Year Month]) , calculate(
COUNTROWS (
SUMMARIZE ( 'cr20b_commscampusauditlogs3', 'cr20b_commscampusauditlogs3'[UserId], 'Date'[Date])
))), removefilters('date'))

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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