Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi all,
Imagine a table like this:
I want a calculated column to divide a fixed number (In this example 20) with the Count of Job ID's per Project ID.
In above example :
Project ID 1 has 4 distinct Job IDs. Therefore each Job ID is 5 (20 / 4)
Project ID 2 has 8 distinct Job IDs. Therefore each Job ID is 2.5 (20 / 😎
How do I achieve that?
Solved! Go to Solution.
@Anonymous Try this measure:
MEASURE =
VAR perJOB_ = CALCULATE(COUNT(Table[Job ID],ALLEXCEPT(TableName,ProjectID))
RETURN DIVIDE(20,perJOB_)
@Anonymous , Check the screen shot of your scenario:
@Anonymous , Check the screen shot of your scenario:
@Anonymous Try this measure:
MEASURE =
VAR perJOB_ = CALCULATE(COUNT(Table[Job ID],ALLEXCEPT(TableName,ProjectID))
RETURN DIVIDE(20,perJOB_)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 38 | |
| 31 | |
| 27 | |
| 27 |