Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a report that has a column of ID's that are replicated and another column that tells me the days past due for each. I need a distinct count IDs that are greater than 4 days. Below is my sample data. I just need the total counts so in this case, only 2 IDs would be past 4 days and the figure to display in the card is 2.
ID | Days Past Due |
12345 | 10 |
12345 | 10 |
11111 | 3 |
22222 | 6 |
22222 | 6 |
22222 | 6 |
Solved! Go to Solution.
Hi @EricKautz
You can use :
Bbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @EricKautz
You can use :
Bbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
This worked perfectly thank you.
Happy to help 🙂
Hi,
There isn't too much data to work with, I assume that 111113 is the only one which is not past due date by 4 days.
If this is the case then you can do something like this:
Past Due Date = CALCULATE(DISTINCTCOUNT(Table[ID]),DATEADD('Date'[Date],-4,DAY)
If this solved your question then please mark it as the solution so others can see it. A Kodos would also be very much appreciated.
Best,
Sorry, I didn't realize Microsoft cut off some data when I posted. The numbers you are seeing are the ID's and the days combined. so for the ones that are 12345 days should be 10, 11111 should be 3 days, and 22222 should be 6 days.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
65 | |
63 | |
52 | |
37 | |
36 |
User | Count |
---|---|
79 | |
67 | |
60 | |
45 | |
45 |