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 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! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |