The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have similar table and i have used excel Count formula to calculate column Total. I wanted to know what is the DAX formula to be used to get similar result in Power BI.
Thanks
Lionel
Solved! Go to Solution.
You can create a calculated column.
Total = IF(ISBLANK(Table1[NCR1]),0,1)+IF(ISBLANK(Table1[NCR2]),0,1)+IF(ISBLANK(Table1[NCR3]),0,1)+IF(ISBLANK(Table1[NCR4]),0,1)+IF(ISBLANK(Table1[NCR5]),0,1)
You can create a calculated column.
Total = IF(ISBLANK(Table1[NCR1]),0,1)+IF(ISBLANK(Table1[NCR2]),0,1)+IF(ISBLANK(Table1[NCR3]),0,1)+IF(ISBLANK(Table1[NCR4]),0,1)+IF(ISBLANK(Table1[NCR5]),0,1)