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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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