Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello All,
Could you please help to calculate number of rows where filter is 1? I've put this formula but there are wrong calculation:
Hi @Anonymous
How do you tell it's not delivered? CAn you show a sample of your table?Try something like this
Count lines undeliv =
CALCULATE (
COUNTROWS ( CDP_data );
FILTER ( 'CDP_data'; 'CDP_data'[Undelivered] = 1 )
)
Hi @AlB not delivered i've counted like that: Negative = if(CDP_data[Undelivered]<0;1;0)
Ok, so then this should work, as a measure in a card visual. If it doesn't, please share a sample of your tables or the pbix:
Count lines undeliv =
CALCULATE (
COUNTROWS ( CDP_data );
FILTER ( 'CDP_data'; 'CDP_data'[Undelivered] < 0 )
)
@AlB It's working but calculcation is wrong.
I have columnt oredered, delivered, undelivered which is calculated:
Hi @Anonymous ,
Create a measure as below.
countrows = CALCULATE (
COUNTROWS ( CDP_data );
FILTER ( 'CDP_data'; 'CDP_data'[Negative] =1 )
)
@v-frfei-msft still the same mistake when I have =1, but it counts correctly when i choose =0.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.