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
SAPpowerbi
Helper II
Helper II

Duplicate values using calculated measure

Hello Team ,

 

I want to show uniqe values and multiple values diffrently using Dax Measure .

Below is table example for your ref .

Category 1Ctegory 2
AAB
AAC
BAA
CAM
DAA
DBB
DCC
  

 

 

Ouput needed -

Category 1Ctegory 2output
AAB2
AAC2
BAA1
CAM1
DAA3
DBB3
DCC3

 

Please  help me  to write a DAX - Calculated measure for above issue 

**Note - I want calculated dax as measure   (not column . )

Thank you in advance .

1 ACCEPTED SOLUTION
ribisht17
Super User
Super User

Hi @SAPpowerbi 

 

ribisht17_0-1663612454653.png

Solution = CALCULATE(COUNT('Table'[Category2]),ALLEXCEPT('Table','Table'[Category1]))
 
Thanks,
Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !! PL 300 Certification Series

View solution in original post

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @SAPpowerbi ;

If you want to  show uniqe values,may be try it.

Measure = CALCULATE(DISTINCT('Table'[Ctegory 2]),ALLEXCEPT('Table','Table'[Category 1]))

The final show:

vyalanwumsft_0-1663640232675.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ribisht17
Super User
Super User

Hi @SAPpowerbi 

 

ribisht17_0-1663612454653.png

Solution = CALCULATE(COUNT('Table'[Category2]),ALLEXCEPT('Table','Table'[Category1]))
 
Thanks,
Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !! PL 300 Certification Series

Thank you for help , this is working.

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.