The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi
This script currently creates a TargetDate based on the EOMONTH function. I need to change this to return the 20th day of the month. Any suggestions?
many thanks
J
Hi,
you can change this part of your code
VAR TargetDate = DATE ( YEAR ( NewDate ), MONTH ( NewDate ), DAY ( NewDate ) ) RETURN EOMONTH ( TargetDate, 0 )
to this
VAR TargetDate = DATE ( YEAR ( NewDate ), MONTH ( NewDate ), 20 ) RETURN TargetDate
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |