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

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

Reply
jonclay
Helper IV
Helper IV

Counting the results of a DAX Measure

Hello all,

I'm trying to count how many times a MM/YYYY (date) appears that has been calculated via a DAX Measure.

The following Measure looks through the payment table and looks at all the rows where the status is paid. It then calculates the latest paid date per customer (the table is linked to the contacts table):

Cancelled Yr & Month Column =
MAXX (
    FILTER (
        payment,
        payment[status] = "Paid"
    ),
    payment[dateofpayment]
)

The tabled result looks something like this:

jonclay_0-1708445953214.png

 

I am then trying to find how many times each MM/YYYY combination appears. So, in the example above, 10/2008 would be 2 and 09/2008 would be 1.

How could I do this please? All attempts at using a Calculated Column and another Measure have failed me so far!

Many thanks
Jon
1 ACCEPTED SOLUTION
ray_aramburo
Super User
Super User

Try using some inspiration from this post.

Usually this gets done with SUMX.





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
ray_aramburo
Super User
Super User

Try using some inspiration from this post.

Usually this gets done with SUMX.





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors