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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
majo23
Frequent Visitor

Count number of repetitions but count 1 time if same date

Hi everyone,

Im making a measure that let you count the number of repetitions but if they have the same date then count it has 1 for that day

Count =
CALCULATE (
    COUNT(Table[LastUpdatedBy]),
    FILTER (
        Table,
        Table[CutDate] <> Table[CutDate]
))
 
majo23_0-1688708687242.png

 

If someone could help me I will appreciated
Thanks MJ
1 ACCEPTED SOLUTION

Hi @majo23 , please try this.

 

 

Count = 
VAR CurrentLastUpdatedBy = MAX(Sheet1[LastUpdatedBy])
VAR StagingTable = SUMMARIZE(FILTER(ALLSELECTED(Sheet1),
                                    Sheet1[LastUpdatedBy] = CurrentLastUpdatedBy),
                             Sheet1[LastUpdatedBy],
                             Sheet1[CutDate],
                             "Dummy_Count", 1
                   )
Var Result = COUNTX(StagingTable,[Dummy_Count])
Return
Result

 



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

View solution in original post

6 REPLIES 6
Arul
Super User
Super User

@majo23 ,

Can you share the sample data?

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


majo23
Frequent Visitor

Thanks for the reply, I made an update with the example file

@majo23 ,

I am not able to download, can you just post the picture of the table?

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


majo23
Frequent Visitor

Hi @Arul I add a picture, also you should be able to download the report if you want

Hi @majo23 , please try this.

 

 

Count = 
VAR CurrentLastUpdatedBy = MAX(Sheet1[LastUpdatedBy])
VAR StagingTable = SUMMARIZE(FILTER(ALLSELECTED(Sheet1),
                                    Sheet1[LastUpdatedBy] = CurrentLastUpdatedBy),
                             Sheet1[LastUpdatedBy],
                             Sheet1[CutDate],
                             "Dummy_Count", 1
                   )
Var Result = COUNTX(StagingTable,[Dummy_Count])
Return
Result

 



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

Thank you very much @johnyip this works like a charm

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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