Forum Discussion
walkery
8 years agoHelper I
CountIf PowerBI
Hello all. I'm new to PowerBI, previously only used Tableau, and have been given a dataset with ~100K records. I'm trying to get the count of the number of instances a deal number comes up where the ...
- 8 years ago
May be
Please see attached file with all these formulas
DealCount3 = IF ( FIRSTNONBLANK( Referrals[Direction],1 ) = "Out", COUNTROWS ( FILTER ( ALL ( Referrals ), Referrals[DimDealNaturalID] = VALUES ( Referrals[DimDealNaturalID] ) && Referrals[Direction] = "Out" ) ), 0 )
walkery
8 years agoHelper I
Zubair_Muhammad It was moving faster, so I was hopeful but it resulted in an error with using the Min function. Any other workarounds? Thanks for your continued suggestions!
Zubair_Muhammad
8 years agoCommunity Champion
May be
Please see attached file with all these formulas
DealCount3 =
IF (
FIRSTNONBLANK( Referrals[Direction],1 ) = "Out",
COUNTROWS (
FILTER (
ALL ( Referrals ),
Referrals[DimDealNaturalID] = VALUES ( Referrals[DimDealNaturalID] )
&& Referrals[Direction] = "Out"
)
),
0
)- walkery8 years agoHelper I
Zubair_Muhammad Thank you! I was able to get it to work finally! Thanks again for your help!