Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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")
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 12 | |
| 10 | |
| 8 |