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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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

 

v-yaningy-msft
Community Support
Community Support

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 @v-yaningy-msft 
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)

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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