Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
my date cell look like this 5/23/2023 6:17:08 AM and i want to get the number of friday in this data column how can i do that
Solved! Go to Solution.
To calculate the number of Fridays in a date column
using DAX WEEKDAY() Function
=COUNTROWS(FILTER(tgif, WEEKDAY(tgif[Date], 2) = 5))
This formula counts the number of rows in a table that have a date with a weekday of 5 (Friday). In this formula, `tgif` is the name of the table, and `Date` is the name of the column that contains the dates.
To calculate the number of Fridays in a date column
using DAX WEEKDAY() Function
=COUNTROWS(FILTER(tgif, WEEKDAY(tgif[Date], 2) = 5))
This formula counts the number of rows in a table that have a date with a weekday of 5 (Friday). In this formula, `tgif` is the name of the table, and `Date` is the name of the column that contains the dates.
i mean week day i want to calculate the number of fridays in data column
Is this what you are looking for?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.