Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PSan1979
Helper II
Helper II

divide 3 columns in dax

Hi Experts,

 

I want to divide 3 columns which come directly frm DB.

 

round((@StuAct / nullif(@StuCount,0) / nullif(@WorkingHrs,0) ) / 6,1)


 

2 REPLIES 2
amitchandak
Super User
Super User

@PSan1979 , Try like

round(divide(divide([StuAct] , coalesce([StuCount],0)) ,coalesce(@WorkingHrs,0) ) / 6,1)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
AllisonKennedy
Super User
Super User

@PSan1979  are you using import or direct query? You can do this as a calculated column pretty straightforward, or do do it as a measure you will need to add an aggregation (such as SUM, AVERAGE or MAX)

 

Please can you describe what output you want in words, not just SQL?


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors