cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Zaky
Helper IV
Helper IV

Count of category

Hi,

 

I have created table to count WO Assignee Group ticket. The data was taken from different tab sheet in excel.

I managed to count total ticket for "Previous Ticket" table using the following measure:

Previous Ticket = COUNT('Previous WO Raw Data for Ageing'[WO Assignee Group])

 

but not success for Latest Ticket table using the following measure:

Latest Ticket= COUNT('Latest WO Raw Data for Ageing'[WO Assignee Group])

 

it looks like the number of tickets count for each group is the same

Anyone can help me what is wrong?

 

 

issue3.PNG

 

 

 

Thanks

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Zaky 

As tested, if "Previous WO Raw Data for Ageing" table and "Latest WO Raw Data for Ageing" table have no relationship, it shows all the same value for "Latest Ticket" measure, 

To solve this, i create relationship between two tables with "many" to "many" relationships.

    (as there are duplicates in 'Previous WO Raw Data for Ageing'[WO Assignee Group] and 'Latest WO Raw Data for Ageing'[WO Assignee Group] )

 

2.png

3.png

 

If you have any problem, please let me know.

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Zaky 

As tested, if "Previous WO Raw Data for Ageing" table and "Latest WO Raw Data for Ageing" table have no relationship, it shows all the same value for "Latest Ticket" measure, 

To solve this, i create relationship between two tables with "many" to "many" relationships.

    (as there are duplicates in 'Previous WO Raw Data for Ageing'[WO Assignee Group] and 'Latest WO Raw Data for Ageing'[WO Assignee Group] )

 

2.png

3.png

 

If you have any problem, please let me know.

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi Maggie,

 

Amazing! I managed to applied accordingly.

Thanks for your help Smiley Happy

 

 

Regards,

Zaky

Hi,

 

I noticed that there is no many to many option. How can i add one?

 

many.png

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power BI User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

March Update

Check it Out!

Click here to read more about the March 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.