Skip to main content

Ageing calculation using DAX

  • In the Below DAX function we are calculating ageing only for the tickets which are open.
  • If the Ticket is closed, then it is mentioned as "NA


DAX Code

Ageing Working Days =

var status1=SELECTEDVALUE(Main[Status])
RETURN
if(
    status1 in {"Open"},
CALCULATE(
    COUNTROWS('fct_Date Table'),
    DATESBETWEEN('fct_Date Table'[Date], max('Main'[SubmittedDate]), TODAY() - 1),
    'fct_Date Table'[IsWorkingDay] = TRUE,'Main'[Status] IN {"Open"},
    ALL('Main')),
    "NA"
)

Comments

Popular posts from this blog

Convex Lens Vs Concave Lens

What is a Lens A lens is a transparent object that transmits light across it, and its working principle depends on the   law of refraction (Snell’s law) . Applications: Concave Lens help with Far-Sight Convex Lens help with Near-Sight

Herbal Plants

Herbal plants to grow in home Different types of keerai ----- http://www.indiandietrecipes.com/2016/03/pictures-of-various-types-of-greens-or.html Pirandai ----good for bone joins---- https://youtu.be/k2DGubyXLAE Valarai Keerai Benifits ----- https://youtu.be/33HIfLJKTqA Sesma seeds ---- https://easyayurveda.com/2011/02/24/sesame-and-sesame-oil-benefits-total-ayurveda-details/

What is Verbal and Non-Verbal communication

TYPES OF COMMUNICATIONS: