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.
I am trying to display an indicator in column "Rolling 18 Months", so I can filter sales by rolling 18 months. Below is the formula I tried without success. I want it to display "true" when the date is within the 18 month window and "false" when it is not. Any help is appriciated, thank you!
Solved! Go to Solution.
@jkal4712 , You are creating a column, No need for Max. The column need to be created in OpCo Purchases Query (SEED) table
Rolling 18 Months =
VAR EndDate =
EOMONTH(Today(), -1 )
VAR StartDate =
EDATE(EOMONTH(TODAY(), -1 ), -18 ) + 1
RETURN
IF(
( 'OpCo Purchases Query (SEED)'[day_dt]) >= StartDate
&& ('OpCo Purchases Query (SEED)'[day_dt] ) <= EndDate,
TRUE (),
FALSE ()
)
@jkal4712 , You are creating a column, No need for Max. The column need to be created in OpCo Purchases Query (SEED) table
Rolling 18 Months =
VAR EndDate =
EOMONTH(Today(), -1 )
VAR StartDate =
EDATE(EOMONTH(TODAY(), -1 ), -18 ) + 1
RETURN
IF(
( 'OpCo Purchases Query (SEED)'[day_dt]) >= StartDate
&& ('OpCo Purchases Query (SEED)'[day_dt] ) <= EndDate,
TRUE (),
FALSE ()
)
Thank you so much that worked perfectly!
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 |
---|---|
114 | |
99 | |
81 | |
70 | |
62 |
User | Count |
---|---|
148 | |
116 | |
104 | |
90 | |
65 |