We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I'm not sure whether this is the appropriate step, but I have a date column called "Date Started" in a table. I want to create a new measure in PBI to evaluate this date field and determine if this date field is later than today's date, or earlier than today's date. If the date field is earlier than today's date, then the new measure field for that row should appear as "Started". If the date field is later than today's date, the measure should appear as "Not Started". If I were using a formula in Excel, this is what I would use: =IF(F4<=TODAY()|"Started"|"Not Started"). At the end of the day, I want to create a table in PowerBI that shows the total count of Started vs. Not Started for each line item in the table.
Is Measure the right thing for this?
Thanks.
Solved! Go to Solution.
Hi @Anonymous,
The Values you are trying to generate requires you to create a calculated column and not a measure. To get the column of your need that shows Started or Not - started as of today, use the following DAX in a calculated column
Started/Not-Started = IF(DATEDIFF(TODAY(), Project_Dates[Date], DAY) > 0, "Not Started", "Started")
Find below the screenshot for your reference
Hi @Anonymous,
The Values you are trying to generate requires you to create a calculated column and not a measure. To get the column of your need that shows Started or Not - started as of today, use the following DAX in a calculated column
Started/Not-Started = IF(DATEDIFF(TODAY(), Project_Dates[Date], DAY) > 0, "Not Started", "Started")
Find below the screenshot for your reference
This worked great - Thanks!
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 38 | |
| 33 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 67 | |
| 62 | |
| 38 | |
| 34 | |
| 22 |