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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anningco
New Member

To count a date column and populate the count based on main date column

Hi guru,

 

I would like to seek your help on the following question I encountered.

Background - 

I have two tables, one being the main table (Append1) and another is the intelligient date table (Intel_cal) and their relationship is the File_Extraction_Date in Append1 table link to Date column in Intel_Cal table.
figure 1 - table.png

The following are the tables columns structure

figure 2 - table structure.png

Objective -

My goal is to count the "Date_Created" column based on its Date value. The result of the count of the date value in the "Date_Created" column is to populated it into the main date (i.e., Month Year Short field column in the table visual), like the following...
Correct daz.png

However, the following two DAXs I wrote gave me an incorrect outcome.
2 dax failed.png

 

Hope you can provide an insight? and am wondering if DAX able to give me the output I want. 

Thanks.
Aiyo

1 ACCEPTED SOLUTION
pankajnamekar25
Super User
Super User

Hello @Anningco 

 

Try this measure

Created Count =

CALCULATE(

    COUNTROWS(Append1),

    FILTER(

        ALL(Append1),

        FORMAT(Append1[Date_Created], "MMM-yy") = FORMAT(MAX(Intel_Cal[Date]), "MMM-yy")

    )

)

 

 

Thanks

 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

View solution in original post

1 REPLY 1
pankajnamekar25
Super User
Super User

Hello @Anningco 

 

Try this measure

Created Count =

CALCULATE(

    COUNTROWS(Append1),

    FILTER(

        ALL(Append1),

        FORMAT(Append1[Date_Created], "MMM-yy") = FORMAT(MAX(Intel_Cal[Date]), "MMM-yy")

    )

)

 

 

Thanks

 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

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.