Forum Discussion
Excel Countifs Vs PowerBI Countrows
- Anonymous3 years ago
Hi Anonymous ,
Thanks for granting the permission to access the file, now I can access it successfully. As checked the file, please update the formula of calculated column [Column9_PBIequi] as below and you can get the expected result...
Column9_PBIequi = IF ( 'Dummy data'[Column8_PBIequi] = 1, IF ( COUNTROWS ( FILTER ( 'Dummy data', 'Dummy data'[Column2] <> BLANK () && 'Dummy data'[Column2] = EARLIER ( 'Dummy data'[Column2] ) && 'Dummy data'[Date] > EARLIER ( 'Dummy data'[Date] ) && 'Dummy data'[Date] <= EARLIER ( 'Dummy data'[Date] ) + 2 && 'Dummy data'[Column8_PBIequi] = 0 ) ) > 0, 1, 0 ), 0 )Best Regards
Hello,
Thank you for the response. We've prepared dummy data and dummy PBIX for your reference. Kindly refer to columns column9 and Column9_PBIequi for your analysis. Thank you. Please also refer to the ff link for the downloadable files: https://drive.google.com/drive/folders/1O0Bg0AOYXn8S827UGFfrgAAfOB8UqzaG
- Anonymous3 years agoNot applicable
Hi Anonymous ,
It seems that I have no sufficient privilledge to access your file. Could you please grant me the proper access to it? Thank you.
Best Regards
- Anonymous3 years agoNot applicable
Hi,
I just updated the permission. You may now try to download again. Thanks!
- Anonymous3 years agoNot applicable
Hi Anonymous ,
Thanks for granting the permission to access the file, now I can access it successfully. As checked the file, please update the formula of calculated column [Column9_PBIequi] as below and you can get the expected result...
Column9_PBIequi = IF ( 'Dummy data'[Column8_PBIequi] = 1, IF ( COUNTROWS ( FILTER ( 'Dummy data', 'Dummy data'[Column2] <> BLANK () && 'Dummy data'[Column2] = EARLIER ( 'Dummy data'[Column2] ) && 'Dummy data'[Date] > EARLIER ( 'Dummy data'[Date] ) && 'Dummy data'[Date] <= EARLIER ( 'Dummy data'[Date] ) + 2 && 'Dummy data'[Column8_PBIequi] = 0 ) ) > 0, 1, 0 ), 0 )Best Regards