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
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
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!

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
Top Kudoed Authors