Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
25 | |
12 | |
11 | |
10 | |
6 |