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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Stabbathehut
Frequent Visitor

How to show Member count over a period of time

 

Hi All, 

 

I am struggling to understand how I have made this so difficult. I am trying to show by year, month and week how many members are joining in a certain community but am just getting various errors. The attempt is to make a cumulative frequency scatter graph that then forecasts how long it will take to reach 10k members. Any help would be greatly appreciated 🙂 Capture.PNGCapture1.PNG

 

2 ACCEPTED SOLUTIONS
v-shex-msft
Community Support
Community Support

Hi @Stabbathehut ,

You can try to use the following dax formulas if they suitable for your requirement.

Calculated table calendar:

Calendar = CALENDAR(MIN('Table'[Date]),MAX('Table'[Date]))

Measures:

Rolling total =
CALCULATE (
    SUM ( 'Table'[Amount] ),
    FILTER ( ALLSELECTED ( 'Table' ), [Date] <= MAX ( 'Calendar'[Date] ) ),
    VALUES ( 'Table'[Week] )
)

Rolling total Over 10k Duartion(days) =
VAR temp =
    SUMMARIZE ( 'Calendar', 'Calendar'[Date], "Total", [Rolling total] )
VAR exceed =
    MINX ( FILTER ( temp, [Total] >= 10000 ), [Date] )
RETURN
    DATEDIFF ( MIN ( 'Calendar'[Date] ), exceed, DAY )

17.png

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

Build a Calendar table by going to Data > Modelling > New Table and writing this measure

Calendar = CALENDAR(MIN(Data[Date]),MAX(Data[Date]))

Create a relationship from the Date column of the Data Table to the Date column of the Calendar Table.  In the Calendar Table, extract the Year and Month by using the following calculated column formulas

Year = YEAR(Calendar[Date])

Month = FORMAT(Calendar[Date],"mmmm")

To your visual, drag any date dimension (Day/Month/Year) only from the Calendar Table.  Write these measures

New members = SUM(Data[New Members per week])

Members till date = CALCULATE([New members],DATESBETWEEN(Calendar[Date],MINX(ALL(Calendar),Calendar[Date]),MAX(Calendar[Date])))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Build a Calendar table by going to Data > Modelling > New Table and writing this measure

Calendar = CALENDAR(MIN(Data[Date]),MAX(Data[Date]))

Create a relationship from the Date column of the Data Table to the Date column of the Calendar Table.  In the Calendar Table, extract the Year and Month by using the following calculated column formulas

Year = YEAR(Calendar[Date])

Month = FORMAT(Calendar[Date],"mmmm")

To your visual, drag any date dimension (Day/Month/Year) only from the Calendar Table.  Write these measures

New members = SUM(Data[New Members per week])

Members till date = CALCULATE([New members],DATESBETWEEN(Calendar[Date],MINX(ALL(Calendar),Calendar[Date]),MAX(Calendar[Date])))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-shex-msft
Community Support
Community Support

Hi @Stabbathehut ,

You can try to use the following dax formulas if they suitable for your requirement.

Calculated table calendar:

Calendar = CALENDAR(MIN('Table'[Date]),MAX('Table'[Date]))

Measures:

Rolling total =
CALCULATE (
    SUM ( 'Table'[Amount] ),
    FILTER ( ALLSELECTED ( 'Table' ), [Date] <= MAX ( 'Calendar'[Date] ) ),
    VALUES ( 'Table'[Week] )
)

Rolling total Over 10k Duartion(days) =
VAR temp =
    SUMMARIZE ( 'Calendar', 'Calendar'[Date], "Total", [Rolling total] )
VAR exceed =
    MINX ( FILTER ( temp, [Total] >= 10000 ), [Date] )
RETURN
    DATEDIFF ( MIN ( 'Calendar'[Date] ), exceed, DAY )

17.png

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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