Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Distinct Values where neither contains

Hi All,

 

I'll need to create multiple reports where the structure of the data source has a hierarchical structure, and I need distinct counts of the higher levels of the hierarchy based on conditions in the lower parts of the hierarchy. The data source is SQL so I may have to write several queries to get separate tables if that's what's needed. I have a demo of what I'm looking at below:

 

This is 1 ticket, but there are 2 tasks and 3 subtasks. I need to report on "Ticket 1" and indicate that it was opened March 1st, and that the order hasn't been submitted yet. 

 

Ticket numberopen dateclose datetask numbertask nameclose datesubtask numbersubtask nameclose date
ticket1mar 1 task1Start new ordermar. 3subtask1call customermar. 2
ticket1mar 1 task1Start new ordermar. 3subtask2Confirm order detailsmar. 2
ticket1mar 1 task2Submit Order subtask1Enter in systemmar.4
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello,

 

As I went back to the stakeholder asking for this information I better understand what the need is. I was originally miss-understanding the ask, however, I am still challenged with how to report a specific metric. 

 

What I am looking for at this point is how to count distinct ticket numbers between 2 different dates. I have seen numerous posts about this and will continue to find the information that I need on other posts.

 

Thank you for all of your support!

View solution in original post

4 REPLIES 4
v-zhenbw-msft
Community Support
Community Support

Hi @Anonymous ,

 

We have a little confused about your issue.

What is your desire result? Do you want to create a matrix table to show the distinctcount like following?

 

DIS1.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hello,

 

As I went back to the stakeholder asking for this information I better understand what the need is. I was originally miss-understanding the ask, however, I am still challenged with how to report a specific metric. 

 

What I am looking for at this point is how to count distinct ticket numbers between 2 different dates. I have seen numerous posts about this and will continue to find the information that I need on other posts.

 

Thank you for all of your support!

amitchandak
Super User
Super User
Anonymous
Not applicable

This is certainly helpful, however, my issue is that the lower levels of the hierarchy aren't dependent on the upper parts of the hierarchy. My situation is much-like a national car repair chain, whereby a repair can be quoted over the phone but then the customer still has to bring the car in to receive service. While the local team is waiting to bring in the car for service, the head office can start doing work such as ordering parts. This would mean that the parts order could complete before the car even arrives. At which point I would be looking to count how many cars have been repaired, are in the shop, are waiting to be picked up at any given moment a task/sub-task (related to parts, service, or other administrative actions) could be completed "out of order".

 

but the "car" is higher in the hierarchy than the part order, drop-off, or other tasks. In these instances I'm looking to count the unique ticket numbers where the "bring car into garage" task is not completed.

 

Would your solution apply to this and I'm just missing the connection?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.