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
CarlZ22
Regular Visitor

count distinct and data integrity

hello,

I have a data set with service records and they are ranked by low med high at each visit. tech will go visit the same device (fridge) multiple times a year under the same case number and device ID (unique) but rank differs at each visit. I want to calculated the working cases and managed to do that by filtering open cases and taking the distinct of the count but i also want to show how many are in low med high but the numbers dont add up. (logically it shouldnt but am i thinking incorrectly)

 

case device rank tech

1       xxx     high  ax

2       yyy     med  vv

1      xxx      med  ax

2      yyy      med  vv

2      yyy      low   vv

 

viz:

tech  uniq count of open cases   low     med      high

ax                 1                                0         1        1

vv                 3                                1         2        0

 

so technically 1 open case cant have 2 status (med and high)

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

Hi @CarlZ22 ,

Why your data:uniq count of open cases  for ax=1?And from the base data, I think it may be 2.

vluwangmsft_0-1645757385349.png

vluwangmsft_1-1645757410880.png

You could download my pbix file ,and refer it.

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

View solution in original post

1 REPLY 1
v-luwang-msft
Community Support
Community Support

Hi @CarlZ22 ,

Why your data:uniq count of open cases  for ax=1?And from the base data, I think it may be 2.

vluwangmsft_0-1645757385349.png

vluwangmsft_1-1645757410880.png

You could download my pbix file ,and refer it.

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

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.