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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hi All,
I'm encountering a slight issue with my calculation. I have the below table. I need to get a cumulative count where Proposal Type = A, however, i need to ignore the rows where Proposal Date is BLANK.
When i use the below calculation, it's cumulating on the blank Proposal Date rows as well. Does anyone know how i can just do a cumulative count on the rows where there is an associated Proposal Date value?
Proposal Date | Proposal Type |
A | |
1/1/21 | A |
5/1/21 | B |
A | |
A | |
10/1/21 | A |
My measure:
Solved! Go to Solution.
Hi @Anonymous
try it
CALCULATE (
COUNTROWS ( FILTER ( 'ProposalData', 'ProposalDate[ProposalType] = "A" && 'ProposalData'[ProposalDate] <> BLANK() ) ),
FILTER(ALL('ProposalData'), 'ProposalData'[ProposalDate] <= MAX('ProposalData'[ProposalDate])))
Hi @Anonymous
try it
CALCULATE (
COUNTROWS ( FILTER ( 'ProposalData', 'ProposalDate[ProposalType] = "A" && 'ProposalData'[ProposalDate] <> BLANK() ) ),
FILTER(ALL('ProposalData'), 'ProposalData'[ProposalDate] <= MAX('ProposalData'[ProposalDate])))
That worked perfectly! Thanks so much!