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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply

Distinct duplication in cards

Hello , I am showing dupliaction of subtype data in tabular version (Subtypetotal = countrows(Table)and filtering >1 )
I want to to show total number of type in cards as 4 (I have tried using distinct count but it is not giving me correct value), as per my data , but unable to get it can someone help Thank you in advance !!

CapturePower bi Query.PNG

2 REPLIES 2
v-zhouwen-msft
Community Support
Community Support

Hi @prajaktakeni11 ,

Table data are as follows:

vzhouwenmsft_0-1707185100567.png

 

Please follow these steps:
1. Use the following DAX expression to create a measure named 'TotalNumberOfType'

TotalNumberOfType = COUNTROWS(VALUES(Tabelle1[Type]))

2.Use the following DAX expression to create a measure named 'TotalNumberOfSub-Type'

TotalNumberOfSub-Type = COUNTROWS(VALUES(Tabelle1[Subtype]))

3. Final output

vzhouwenmsft_1-1707185257858.png

 

vzhouwenmsft_2-1707185270528.png

 

vzhouwenmsft_3-1707185281995.png

 

vzhouwenmsft_4-1707185292510.png

 

Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

@v-zhouwen-msft  Thank you for your reply , but this is counts of duplications and it is not working for me it i sstill giving me Total Amount not distinct values 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.