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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Counting later records with same values

Hi hopefully someone can point out my mistake,  the below isnt bringing back any resultys where is really should do.

 

I have a jobs table , which I want to show in a table visual with a column to show the number of jobs in the table for each record that have the same propertykeyno , the same problemsummary are recorded after the current row. Any help aprreciated. Thanks

Later Chases = 
var JobID = If(HASONEVALUE('Jobs'[JobNoEventNo]), Min('Jobs'[JobNoEventNo]) ,Blank())
var DateOfJob = If(HASONEVALUE('Jobs'[_RECORDEDDATETIME]), Min('Jobs'[_RECORDEDDATETIME]) ,Blank())
var ProblemSummary = If(HASONEVALUE('Jobs'[PROBLEMSUMMARY]), Min('Jobs'[PROBLEMSUMMARY]) ,Blank())
var PropertyKeyNo = If(HASONEVALUE('Jobs'[PROPERTYKEYNO]), Min('Jobs'[PROPERTYKEYNO]) ,Blank())
var LaterJobs = FILTER('Jobs' , 'Jobs'[_RECORDEDDATETIME] >= DateOfJob && 'Jobs'[PROBLEMSUMMARY] = ProblemSummary && 'Jobs'[PROPERTYKEYNO] = PropertyKeyNo && 'Jobs'[JobNoEventNo] <> JobID)
RETURN
CALCULATE(COUNTROWS(LaterJobs) , ALL(jobs) , LaterJobs)

 

 
3 REPLIES 3
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

Could you tell me if your problem has been solved? If it is, kindly share your solutions. More people who have the same request will benefit from here. If you are still confused about it, please share same sample data and expected result to us. 

 

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi I think actually the above worked for my purposed after all - I am not sure what was affecting the result when I first posted the question.

 

In what format should I post my sample data in future questions? Thanks?

v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

Can you please share some sample data and your expected results? Then we will understand clearly and solve it as soon as possible. Please see this post regarding How to Get Your Question Answered Quickly: 

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Kudos are nice too.

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

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.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors