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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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 @Anonymous ,
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 @Anonymous
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 @Anonymous ,
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:] )
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 108 | |
| 108 | |
| 39 | |
| 33 | |
| 26 |