This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
i have using below Dax formula
today = IF(VALUE(TODAY()) == test[Request Closed Date] ,"1","0")
Solved! Go to Solution.
@Anonymous
Yesterday=
IF (
TODAY ()-1
= DATE ( YEAR ( testTable[Request Closed Date] ), MONTH ( testTable[Request Closed Date] ), DAY ( testTable[Request Closed Date] ) ),
1,
0
)Today =
IF (
TODAY ()
= DATE ( YEAR ( testTable[Request Closed Date] ), MONTH ( testTable[Request Closed Date] ), DAY ( testTable[Request Closed Date] ) ),
1,
0
)
Is this working?
Also, I have updated my previous post with the sample dataset, see if it is working or not.
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
@Anonymous
Try this calculated column
Today = IF(TODAY()=testTable[Request Closed Date],1,0)Yesterday = IF(TODAY()-1=testTable[Request Closed Date],1,0)
Also, make sure the Requested Closed Date column type as Date
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
Here is my latest blog
https://community.powerbi.com/t5/Community-Blog/Dynamic-Page-Navigation-Based-on-User-Login/ba-p/1097786
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
@Anonymous Make sure the column type is Date.
I have tried to replicate your scenario.
Below is the PowerQuery for the sample table
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjLVNTDVNTIwMlCK1QFyTVC5+GWNUblGCG4sAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Request Closed Date" = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Request Closed Date", type datetime}})
in
#"Changed Type"
Calculated columns
Today = IF(TODAY()=testTable[Request Closed Date],1,0)Yesterday = IF(TODAY()-1=testTable[Request Closed Date],1,0)
Alternatively
Yesterday=
IF (
TODAY ()-1
= DATE ( YEAR ( testTable[Request Closed Date] ), MONTH ( testTable[Request Closed Date] ), DAY ( testTable[Request Closed Date] ) ),
1,
0
)Today =
IF (
TODAY ()
= DATE ( YEAR ( testTable[Request Closed Date] ), MONTH ( testTable[Request Closed Date] ), DAY ( testTable[Request Closed Date] ) ),
1,
0
)It is working for me.
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
@Anonymous
Yesterday=
IF (
TODAY ()-1
= DATE ( YEAR ( testTable[Request Closed Date] ), MONTH ( testTable[Request Closed Date] ), DAY ( testTable[Request Closed Date] ) ),
1,
0
)Today =
IF (
TODAY ()
= DATE ( YEAR ( testTable[Request Closed Date] ), MONTH ( testTable[Request Closed Date] ), DAY ( testTable[Request Closed Date] ) ),
1,
0
)
Is this working?
Also, I have updated my previous post with the sample dataset, see if it is working or not.
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 16 | |
| 8 | |
| 7 | |
| 6 | |
| 6 |