Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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?
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
86 | |
82 | |
70 | |
49 |
User | Count |
---|---|
143 | |
123 | |
107 | |
61 | |
55 |