Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi All,
I have a scenario. I need to get repeated values in a measure based on some date constraint.
Example:
Ids' may repeat in year.
I need a distinct count of Ids which are present in the first half as well as in the second half if I add date constraint as 6 months.
In Slicer start date 1/06/2011 to 1/12/2011
Id Date Amount Status(Measure)
1000 1/1/2011 25.00 Inactive
2000 2/2/2011 500.00 Inactive
1000 1/08/2011 89.00 active
2000 01/09/2011 45.00 Active
Now I require the count of id. The output should be 2.
Solved! Go to Solution.
Hi , @manideep547
Please try the measure as below :
count of id =
COUNTROWS (
FILTER (
SUMMARIZE (
'Table',
'Table'[Id],
"InDate", CALCULATE (
SUM ( 'Table'[Amount ] ),
'Table'[Date] IN FILTERS ( 'Date'[Date] )
),
"OutDate", CALCULATE (
SUM ( 'Table'[Amount ] ),
NOT 'Table'[Date] IN FILTERS ( 'Date'[Date] )
)
),
[InDate] <> [OutDate]
)
)
And it shows as below :
Here is a sample :
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi , @manideep547
Please try the measure as below :
count of id =
COUNTROWS (
FILTER (
SUMMARIZE (
'Table',
'Table'[Id],
"InDate", CALCULATE (
SUM ( 'Table'[Amount ] ),
'Table'[Date] IN FILTERS ( 'Date'[Date] )
),
"OutDate", CALCULATE (
SUM ( 'Table'[Amount ] ),
NOT 'Table'[Date] IN FILTERS ( 'Date'[Date] )
)
),
[InDate] <> [OutDate]
)
)
And it shows as below :
Here is a sample :
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 53 | |
| 42 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 124 | |
| 105 | |
| 44 | |
| 32 | |
| 24 |