Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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
Solved! Go to Solution.
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 + _Child
2. Outcome:
Hi @itsranga
We have not received a response from you regarding the query and were following up to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.
Thank You.
Hi @itsranga
Thanks for reaching out to the Microsoft fabric community forum.
I would like to thank you @GeraldGEmerick and @rohit1991 for your active participation in the community forum and for the valuable solutions you have shared. Your contributions have a significant impact.
I hope the information provided will assist you in resolving the issue. If you have further questions or require additional assistance, please do not hesitate to reach out. We are here to support you.
Best Regards,
Community Support Team.
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 + _Child
2. Outcome:
@GeraldGEmerick realtionship is there but diifrent column many to many replationship
@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?
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 |
|---|---|
| 48 | |
| 43 | |
| 39 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 30 | |
| 23 |