Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Solved! Go to 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
Thanks for the reply, I made an update with the example file
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
User | Count |
---|---|
77 | |
74 | |
42 | |
32 | |
28 |
User | Count |
---|---|
99 | |
92 | |
50 | |
49 | |
46 |