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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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