Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Experts
need a calculated column measure to show the value 1 when the date is one day less then the current date
(See expected results in the table below)
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Result CC =
VAR _condition =
Data[Date]
= TODAY () - 1
RETURN
DIVIDE ( _condition, _condition, 0 )
Hi,
One of ways to write a measure is as below.
expected outcome measure: =
VAR _condition =
SELECTEDVALUE(Data[Date])
= TODAY () - 1
RETURN
IF( HASONEVALUE(Data[Date]),
DIVIDE ( _condition, _condition, 0 )
)
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Result CC =
VAR _condition =
Data[Date]
= TODAY () - 1
RETURN
DIVIDE ( _condition, _condition, 0 )
HI Kim
how would you write the above calculated column as a measure??
Hi,
One of ways to write a measure is as below.
expected outcome measure: =
VAR _condition =
SELECTEDVALUE(Data[Date])
= TODAY () - 1
RETURN
IF( HASONEVALUE(Data[Date]),
DIVIDE ( _condition, _condition, 0 )
)
New Column = if(date(today())<Table[Date],1,0)
@Anonymous Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |