Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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 |
|---|---|
| 53 | |
| 36 | |
| 33 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 72 | |
| 72 | |
| 38 | |
| 35 | |
| 26 |