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,
I have a combined table with actual studetns vs Targets. The two fields come from a separate table. Is it possible to do a divide function as a calculated column to see porportion of target achieved? Thanks
| actual students | targets | |
| Uni A | 1000 | 800 |
| Uni B | 1500 | 1200 |
| Uni C | 2000 | 2500 |
Solved! Go to Solution.
Hi @epang0714 ,
You can create calculated column as below in the table 'Target data' to get it:
Porportion =
VAR _actual =
CALCULATE (
DISTINCTCOUNT ( 'Fact data'[StudentID] ),
FILTER (
'Fact data',
'Fact data'[Uni] = 'Target data'[Uni]
&& 'Fact data'[Commencement_Year] = 'Fact data'[Timeperiod]
)
)
RETURN
DIVIDE ( _actual, 'Target data'[targets] )
Best Regards
Hi @epang0714
try creating a table with summarizecolumns function ,
SUMMARIZECOLUMNS( ) DAX function.
and then you can use divide
the original actual students is a measure as following
I cannot find the field in the function.
Hi @epang0714 ,
You can create calculated column as below in the table 'Target data' to get it:
Porportion =
VAR _actual =
CALCULATE (
DISTINCTCOUNT ( 'Fact data'[StudentID] ),
FILTER (
'Fact data',
'Fact data'[Uni] = 'Target data'[Uni]
&& 'Fact data'[Commencement_Year] = 'Fact data'[Timeperiod]
)
)
RETURN
DIVIDE ( _actual, 'Target data'[targets] )
Best Regards
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
It is for creating a measure.
# target students: =
SUM( target[targets] )
# actual students: =
SUM( actual[actual students] )
Ratio: =
DIVIDE( [# actual students:], [# target students:] )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!