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 August 31st. Request your voucher.
Hello all,
I have a simple DAX column that should adjust the date when data is written.
date_adjustment = FORMAT(table_name[Created],"dd.mm"
date_adjustment = FORMAT(table_name[Created],"dd.mm" - 1
hi @Nishlija995
try to write the column like:
date_adjustment =
VAR _date = [Created]
RETURN
MAXX(
FILTER(
table_name,
table_name[Created] <_date
&& NOT WEEKDAY(table_name[Created]) IN {1,7}
),
table_name[Created]
)
Hello @FreemanZ , thanks for fast response.
Unfortunatly this is not something I was looking for. Here is the screenshot.
This is the difference, on the right side is your formula. I need for all values to slip one day before. So 16th should be empty and this data should be written to 13th, 13th should go to 12th, 12th to 11th, etc. And also, weekends should not be visible in chart since they are empty.
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
13 | |
9 | |
8 |