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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply

Distinct count of duplication in cards

Hello , 
sharing 2 columns of my data table , I am showing applicationwise  duplication of "Service Column" , but to show on cards i want to show distinct values as in Disctict application = 4 , distinct service name = 18 

Distinct Service Count = 

COUNTAX(FILTER(SUMMARIZE('Analysis Report','Analysis Report'[ApplicationName],'Analysis Report'[ServiceName],"Total",COUNT('Analysis Report'[serviceName])),[Total]=2),[Total])
I tried using summarize function it is working for Serive name but not for application 
Please help , Thank you in advance



Capture13feb.PNG



4 REPLIES 4
Hema_Gupta
Frequent Visitor

Hi, 

Hope this helps.

I have used DISTINCTCOUNT Function which counts the number of distinct values in column.

Hema_Gupta_0-1707904829751.png

 

Anonymous
Not applicable

Hi, @prajaktakeni11 

 

Based on your description, I have created many measures to achieve the effect you are looking for. Following picture shows the effect of the display.

 

vyaningymsft_0-1707901559883.png

 

Measure:

Distinct application =

CALCULATE (

    DISTINCTCOUNT ( 'Analysis Report'[ApplicationName] ),

    ALL ( 'Analysis Report'[ApplicationName] ),

    ALL ( 'Analysis Report'[Services] )

)

Distinct Service =

CALCULATE (

    DISTINCTCOUNT ( 'Analysis Report'[Services] ),

    ALL ( 'Analysis Report'[ApplicationName] ),

    ALL ( 'Analysis Report'[Services] )

)

 

If this does not work, could you please share some sample data without sensitive information and expected output.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

 

Hello @Anonymous 
Thank you for your reply , But this is not working in my case it is giving me Total of All the application however I want to show ...... Applicationwise Duplicated Services (in tables) and Distinct Applicatoon and Distinct Services (in cards)

Anonymous
Not applicable

Hi, @prajaktakeni11 

 

Failing to understand what you are trying to achieve in the table for the moment, you can use excel to describe the results you expect to get. I have got Distinct Applicatoon and Distinct Services in my card, do you mean it doesn't work in your pbix file because not sure what other data you have in your power bi, can you share the pbix file without no sensitive data, the data table, and the logic to achieve your desired effect Description.

 

Best Regards,
Yang
Community Support Team

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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