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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hey guys,
I'm just wondering if you could help me find the bug on my DAX formula we're just replicating the ones in Excel. The data set is the same, since most replicated formulas are now giving the same results except for this one.
The formula in Excel is and giving me a sum or count of 13:
I hope somebody will able to help. Please note that most replicated formulas are matching excel except for this remaining 1 so we're sure that both data sources are the same. date column was used as well as reference in other formulas. thanks!
Solved! Go to Solution.
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
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
Hi,
I just updated the permission. You may now try to download again. Thanks!
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
Yes! its now matching! Thank you so much. I hope this helps others with same concern 🙂
Hi @Anonymous ,
If I understand correctly, you are trying to get the count of rows which fulfill some special conditions in Power BI. But the return result(26) in Power BI is different with the one(13) in Excel. And as checked the formula of your created calculated column [Called back] seems OK. In order to get a better understanding on your problem and give you a suitable solution shortly, could you please provide the following info? It would be helpful to find out the solution. Thank you.
It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Kindly see my response above
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 3 |