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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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.


Go to My LinkedIn Page


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.


Go to My LinkedIn Page


Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors