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
javaid355
Frequent Visitor

Unable to divide measure by a column in SSAS Model

I am trying to divide a measure [credit-Debit ] by a column "job weekly scheduled hours" in order to get the houlry rate . The data is in SSAS layer. I can only derive measures . Calculated columns are not allowed. ( igonore the negative sign in [credit - debit].

javaid355_0-1595296295704.png

I'd appreciate any feed backs.

Thanks

Javaid

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi  @javaid355 

Since you are using Live connection in power bi, it is live connecting to a data model, so you could just create report level measure in power bi, all other modeling like create column/table,etc needs to be done in ssas.

https://radacad.com/live-connection-when-power-bi-comes-hybrid

 

For your case,just create a measure as below to get your requirement:

Result=DIVIDE([credit-Debit ] , SUM(Table[Job Scheduled Weekly Hour]))

 

Regards,

Lin 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Lin, 

I am not getting the desired results by using this formula.

javaid355_0-1595518225148.png

 

javaid355_1-1595518283410.png

Please let me know your thoughts.

Thanks.

Jav

amitchandak
Super User
Super User

@javaid355 ,

Divide should be measure only  

Measure = divide(sumx(Table,abs(Table[credit - debit])),sum(Table[Job Scheduled Weekly Hour]))

 

or

AvergaeX(Table,divide(abs(Table[credit - debit]),Table[Job Scheduled Weekly Hour]))

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

Hey Amit,

Both of your suggestions are not giving the correct hourly rate. ( just a reminder that [credit-debit] is a calculated measure, not a column.

Thanks.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors