The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
How do i use DAX to take a column with a date in it and populate a column with a weekend date? I want to be able to filter my data which all has dates into weekends by date.
Solved! Go to Solution.
@rocciajb36 , you can create a column like this and use that
new column
weekday flag = if(WEEKDAY([Date],2) <6,1,0)
measure
calculate(sum(Table[Value]), filter('Date', 'Date'[weekday flag] =1))
@rocciajb36 , you can create a column like this and use that
new column
weekday flag = if(WEEKDAY([Date],2) <6,1,0)
measure
calculate(sum(Table[Value]), filter('Date', 'Date'[weekday flag] =1))
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
5 |
User | Count |
---|---|
24 | |
20 | |
12 | |
9 | |
7 |