Forum Discussion
Count IF Function
- Anonymous4 years ago
Through your guidance i got resolved my out come in tabulation. I have slightly modified your syntex as below. I am getting the desired results as expected with below syntex.
Thanks for your kind support.
ENQ Item COUNT =VAR enqitem =MAX ( 'Monthly report'[Item] )-1VAR quote =( 'Monthly report'[Quotation number] )RETURNCALCULATE (COUNTROWS ( 'Monthly report' ),OR ( 'Monthly report'[Item] = enqitem, 'Monthly report'[Quotation number] = quote ),REMOVEFILTERS ( 'Monthly report' )) - 4 years ago
Anonymous
I believe you are creating a Calculated Column NOT a measure. If you are getting the expected results then, it should be fine.
Anonymous
Not sure where and how you execute this measure. Please try:
ENQItemCOUNT =
VAR item =
MAX ( 'Monthly report'[Item] )
VAR quote =
MAX ( 'Monthly report'[Quotation number] )
RETURN
CALCULATE (
COUNTROWS ( 'Monthly report' ),
OR ( 'Monthly report'[Item] = item, 'Monthly report'[Quotation number] = quote ),
REMOVEFILTERS ( 'Monthly report' )
)
- Anonymous4 years agoNot applicable
Through your guidance i got resolved my out come in tabulation. I have slightly modified your syntex as below. I am getting the desired results as expected with below syntex.
Thanks for your kind support.
ENQ Item COUNT =VAR enqitem =MAX ( 'Monthly report'[Item] )-1VAR quote =( 'Monthly report'[Quotation number] )RETURNCALCULATE (COUNTROWS ( 'Monthly report' ),OR ( 'Monthly report'[Item] = enqitem, 'Monthly report'[Quotation number] = quote ),REMOVEFILTERS ( 'Monthly report' ))- Fowmy4 years agoSuper User
Anonymous
I believe you are creating a Calculated Column NOT a measure. If you are getting the expected results then, it should be fine.
- Anonymous4 years agoNot applicable
Hi Anonymous ,
Could you please mark your post as Answered since you have gotten the desired result? It will help the others in the community find the solution easily if they face the similar problem with you. Thank you.
Best Regards