Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 @MdJ83
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 @MdJ83
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")
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
26 | |
20 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
43 | |
19 | |
18 |