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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
shaun96
New Member

cumulative count on monthly new members by type of members

I have a list of dates with the type of member that signed up. 

 

total count = 
CALCULATE(
COUNT('Sheet1'[Account Type]),
    FILTER(
        ALLSELECTED('Sheet1'),
        'Sheet1'[Date] <= MAX('Sheet1'[Date])
    )
)

 

 

I want to do a cumulative count on a bar graph.

but my dax isn;t working. 

 

 
DateAccount Type
1/01/2023Basic
1/01/2023Basic
1/01/2023Basic
1/01/2023Standard
1/02/2023Basic
1/02/2023Basic
1/02/2023Standard
1/02/2023Standard
1/02/2023Standard
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but please check the below picture and the attached pbix file if it suits yours requirement.

Jihwan_Kim_0-1702007115586.png

 

 

Total count cumulate: =
CALCULATE (
    COUNTROWS ( Data ),
    FILTER (
        ALLSELECTED ( Data ),
        Data[Account Type] = MAX ( Data[Account Type] )
            && Data[Date] <= MAX ( Data[Date] )
    )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @shaun96 

 

Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it. If not, please provide more information and your desired output.

 

Best Regards

Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but please check the below picture and the attached pbix file if it suits yours requirement.

Jihwan_Kim_0-1702007115586.png

 

 

Total count cumulate: =
CALCULATE (
    COUNTROWS ( Data ),
    FILTER (
        ALLSELECTED ( Data ),
        Data[Account Type] = MAX ( Data[Account Type] )
            && Data[Date] <= MAX ( Data[Date] )
    )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.