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
How to convert below excel formula to DAX?
=IF(ISERROR(AVERAGEIFS('P'!$U$3:$U$2186,'P'!$H$3:$H$2186,'C'!$I2,'P'!$X$3:$X$2186,'C'!$C2,'P'!$F$3:$F$2186,'C'!$F2)),"No"
=IF(ISERROR(AVERAGEIFS(UP,MAT,MAT,WORLD,PLANNING,LINE,LINE)),"No"
***Table Name=P,C
>>>Dataset in Excel
Table P | |||
UP | MAT | WORLD | LINE |
123 | ABC | EMEA | AX |
456 | XYZ | ASA | LM |
789 | MNP | AME | AR |
Table C | |||
MAT | Planning | Line | |
ABC | ACD | AX | |
XYZ | KBC | LM | |
MNP | HKR | AR |
Solved! Go to Solution.
thank you so much i found the souliotns here,
HI, @Anonymous
It is calculate the average with multiple conditions, it needs specific data for formula.
Could you please share some data sample and expected output. Do mask sensitive data before uploading.
Best Regards,
Lin
thank you so much i found the souliotns here,
General replacement for the xIF functions in Excel are to use CALCULATE with the appropriate filter, or use the equivalent xX function in DAX (SUMX, AVERAGEX, etc.)
Thank you Greg.I am very new to DAX.Can you please show me in Formula?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 37 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |