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
Anonymous
Not applicable

Add DIVIDE to 2 calculations

Hi, 

 

Is it possible to add in a 'DIVIDE' into these 2 calcualtions please? 

 

CALCULATE(
                   DISTINCTCOUNT(Table[cust_no]),
                   Table[dept_no] = 0
)

 

CALCULATE(
                   DISTINCTCOUNT(Table[dept_no]),
                   Table[mort_no] = Y
)

1 ACCEPTED SOLUTION
goncalogeraldes
Super User
Super User

Hello there @Anonymous! Not sure if this is what you are looking for:

 

Divide =
VAR _value1 =
    CALCULATE ( DISTINCTCOUNT ( Table[cust_no] ), Table[dept_no] = 0 )
VAR _value2 =
    CALCULATE ( DISTINCTCOUNT ( Table[dept_no] ), Table[mort_no] = Y )
RETURN
    DIVIDE ( _value1, _value2 )

Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!

You can also check out my LinkedIn!

Best regards,
Gonçalo Geraldes

 

 

View solution in original post

2 REPLIES 2
goncalogeraldes
Super User
Super User

Hello there @Anonymous! Not sure if this is what you are looking for:

 

Divide =
VAR _value1 =
    CALCULATE ( DISTINCTCOUNT ( Table[cust_no] ), Table[dept_no] = 0 )
VAR _value2 =
    CALCULATE ( DISTINCTCOUNT ( Table[dept_no] ), Table[mort_no] = Y )
RETURN
    DIVIDE ( _value1, _value2 )

Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!

You can also check out my LinkedIn!

Best regards,
Gonçalo Geraldes

 

 

Anonymous
Not applicable

That's perfect, thank you!

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