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
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
)
Solved! Go to Solution.
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
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
That's perfect, thank you!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |