Forum Discussion
itsranga
9 months agoHelper I
DAX Query Not working
Need to calculate Parent ticket and child ticket hrs using DAX formula attached image for my requirement i tried multiple ways but its not working
- 9 months ago
Hi itsranga
1. Create Measures:
Parent_Hrs = SUM(ParentTickets[TotalHrs])Child_Hrs = SUM(ChildTickets[TotalHrs])Total_By_Ticket = VAR _Parent = CALCULATE( SUM(ParentTickets[TotalHrs]), TREATAS(VALUES(ParentTickets[ParentTicketID]), ParentTickets[ParentTicketID]) ) VAR _Child = CALCULATE( SUM(ChildTickets[TotalHrs]), TREATAS(VALUES(ParentTickets[ParentTicketID]), ChildTickets[ParentTicketID]) ) RETURN _Parent + _Child2. Outcome:
GeraldGEmerick
9 months agoSuper User
itsranga How is the Parent ticket tied to the Child Ticket? Is there a table somewhere that defines this relationship or is the data you have exatly what is shown?