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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi there, I have a measure as per below which counts ID's as at the earliest date (I have a date filter on my report set to on or after a certain date).
ID | Count |
A | 1 |
B | 5 |
C | 7 |
Total: | 12 |
As you can see above, ID 'A' has a count of 1 which isn't correct (it should be 0) but the total = 12 which is correct (5+7). How do I get rid of this random 1?
Any help appreciated 🙂
Hi @Hayleysea ,
I did some test but didn't meet the same scenario. Can you share some sample data to us?
Best Regards,
Jay
@Hayleysea , Try like
Original ID Count =
VAR __PreviousDate = MINX(Table, Table[Date])
Return
CALCULATE(COUNTA(table[ID]), FILTER(table, Table[Date]=__PreviousDate))
or
Original ID Count =
VAR __PreviousDate = MINX(Table, Table[Date])
Return
CALCULATE(COUNTA(table[ID]), FILTER(all(table), Table[Date]=__PreviousDate))
The Problem Statement is not Clear. As per my understanding created a File use this
https://drive.google.com/file/d/1Y24Xxh7_TZDR-PJKnt6eb4UW0ExR5xsG/view?usp=sharing
Proud to be a Super User!