Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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")
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |