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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi, I have been playing a bit around but struggling to write a dax query that will flag transaction for the first 4 days of each month.
Original Data | ||
GL Date | Amount | |
1/05/2023 | 100 | |
3/05/2023 | 200 | |
24/05/2023 | 300 | |
1/05/2023 | 400 | |
Output | ||
GL Date | Amout | After month end |
1/05/2023 | 100 | Yes |
3/05/2023 | 200 | Yes |
24/05/2023 | 300 | No |
1/05/2023 | 400 | Yes |
Solved! Go to Solution.
Hello please follow
Flag =
VAR _day = DAY('Table'[GL Date])
RETURN
IF(
_day <=4,"Yes","No")
hi @Anonymous
try to add a calculated column like:
Column =
IF(
DAY([Date])>4,
"No", "Yes"
)
it worked like:
if you need a measure, try to plot the columns with a measure like:
Measure =
IF(
DAY(MAX(data[Date]))>4,
"No", "Yes"
)
it worked like:
hi @Anonymous
try to add a calculated column like:
Column =
IF(
DAY([Date])>4,
"No", "Yes"
)
it worked like:
Hello please follow
Flag =
VAR _day = DAY('Table'[GL Date])
RETURN
IF(
_day <=4,"Yes","No")
User | Count |
---|---|
15 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
30 | |
18 | |
11 | |
7 | |
5 |