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! It's time to submit your entry. Live now!
Hi Experts
need a calculated column measure to give me datediff based on there column two date and one text
current measure = datediff(Incident[startdate],Incident[enddate],day), based on where status column where we are still Active.
ie. datediff for active items
Solved! Go to Solution.
@Anonymous . This seems like a column then measure
current measure = calculate( Sumx(filter(Incident, Incident[Status] ="Active"), datediff(Incident[startdate] ,Incident[enddate] ,day ) ))
Hi @Anonymous ,
If you need to create a calculate column then you can use below code:-
column =
IF (
Incident[activity_status] = "Active",
DATEDIFF ( Incident[startdate], Incident[enddate], DAY )
)
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
@Anonymous . This seems like a column then measure
current measure = calculate( Sumx(filter(Incident, Incident[Status] ="Active"), datediff(Incident[startdate] ,Incident[enddate] ,day ) ))
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 48 | |
| 35 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 134 | |
| 110 | |
| 59 | |
| 39 | |
| 32 |