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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
RanjeetK
Helper I
Helper I

Count list of records which have different RC cycles - in Measure

Hi , 
I need help on this topic - 

RanjeetK_0-1666240677714.png

in Above table we have ID and etach ID have activity ID which is unique - and they fall in one Bucket (RC Cycles)
i need to count a list of records which have two RC cycles 
Output

RanjeetK_4-1666241524476.png
thanks in advance 🙂 !!
https://community.powerbi.com/t5/Desktop/DAX-Count-the-number-of-values-that-appear-more-than-once-i... 

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@RanjeetK ,

New measure =

var _cnt = calculate(countdistinct(Table[Activity Rc Cycle]), filter(allselected(Table), Table[Audit ID] = max(Table[ID])) )

return

sumx(filter(Values(Table[Audit ID]), _cnt>=2) , _cnt)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak , thanks for reply!!
Table[Audit ID] = max(Table[ID])
MAX(table[ID]) ------ ?? - what should i put
i take - Table[Audit ID] - it returns following records which are not correct
let me know

RanjeetK_0-1666244567815.png

Main Table

Audit IDActivity IDActivity RC Cycle
1001014
1001024
1001034
1001041
10001055
10001065
10001075
100001086
100001096
100001105

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors