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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I have a query that gives me the 1st day of the previous month and it works grerat.
Solved! Go to Solution.
You could use
1st Working Day Prev Month =
VAR __prevMonthDay =
EOMONTH ( MAX ( RS_Dates[DateFull] ), -1 ) + 1
VAR __PrevMonthWorkingDay =
CALCULATE (
MIN ( RS_Dates[DateFull] ),
REMOVEFILTERS ( RS_Dates[DateFull] ),
RS_Dates[DateFull] >= __prevMonthDay,
RS_Dates[Is Working Day] = TRUE ()
)
RETURN
CALCULATE ( [Total Sales], Sales_Snapshot[Date Added] = __PrevMonthWorkingDay )
You could use
1st Working Day Prev Month =
VAR __prevMonthDay =
EOMONTH ( MAX ( RS_Dates[DateFull] ), -1 ) + 1
VAR __PrevMonthWorkingDay =
CALCULATE (
MIN ( RS_Dates[DateFull] ),
REMOVEFILTERS ( RS_Dates[DateFull] ),
RS_Dates[DateFull] >= __prevMonthDay,
RS_Dates[Is Working Day] = TRUE ()
)
RETURN
CALCULATE ( [Total Sales], Sales_Snapshot[Date Added] = __PrevMonthWorkingDay )
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |