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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.