Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi i would like to convert this formula in Excel to Dax
=IF(D2=D1,"",IF(COUNTIF(AH2:AH14,"YES")+COUNTIF(AH2:AH14,"N/A")<13,"NO","YES"))
thanks a lot
Solved! Go to Solution.
As @v-ljerr-msft said, this will be difficult based on what you have shown here. DAX is more column named based. Sounds like you are after a measure though. My best guess would be something that looks like this, which assumes you want it to be context sensitive:
YourMeasure = IF(
CALCULATE(
countrows('YourTable'),
OR(
'YourTable'[AHColumnsName] = "YES",
'YourTable'[AHColumnsName] = "N/A"
)
) < 13,
"NO",
"YES"
)
As @v-ljerr-msft said, this will be difficult based on what you have shown here. DAX is more column named based. Sounds like you are after a measure though. My best guess would be something that looks like this, which assumes you want it to be context sensitive:
YourMeasure = IF(
CALCULATE(
countrows('YourTable'),
OR(
'YourTable'[AHColumnsName] = "YES",
'YourTable'[AHColumnsName] = "N/A"
)
) < 13,
"NO",
"YES"
)
Thank you all for this gret answers .
Hi @Anonymous,
Just knowing the Excel formula, it will be hard for us to convert it to DAX formula which works for you. Could you post your table structures with some sample/mock data, and the expected result? So that we can better assist on this issue. ![]()
Regards
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 42 | |
| 38 | |
| 33 | |
| 21 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 59 | |
| 31 | |
| 27 | |
| 25 |