Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! 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 @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:] )
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 |
|---|---|
| 62 | |
| 58 | |
| 45 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 121 | |
| 116 | |
| 37 | |
| 34 | |
| 30 |