Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I have a table that splits agents into productive and non-productive minutes using a calculated column.
The table visual can perform this split quite well, however, when I want to do calculations based on those split values, it becomes quite difficult.
So this is what I have in Power BI:
The columns you can see are derived from a calculated column 'ProductiveSplit'
The calculation for the 'ProductiveSplit' column is something like:
ProductiveSplit = IF('PBI DAST'[AgentStateTypeIdent]=117,"NP-Known"
,IF('PBI DAST'[AgentStateTypeIdent]=120,"NP-Unknown"
,IF('PBI DAST'[AgentStateTypeIdent]=124,"NP-Known"...
What I need are 2 more columns as illustrated in the image above. The calculations are based on the row values of the calculated column 'ProductiveSplit'
So, Prod% = Prod / (NP-Known + NP-Unknown + Prod)
Known% = (Prod + NP-Known) / (NP-Known+ NP-Unknown + Prod)
I have the excel sheet attached of how I need the results to appear below.
Any help would be great.
Solved! Go to Solution.
Hi @Anonymous ,
You may create measures like DAX below.
Prod% =
VAR _Prod =
CALCULATE (
SUM ( Table1[PeriodMins] ),
FILTER ( Table1, Table1[ProductiveSplit] = "Prod" )
)
VAR _Total =
CALCULATE ( SUM ( Table1[PeriodMins] ), ALLSELECTED ( Table1 ) )
RETURN
DIVIDE ( _Prod, _Total )
Known% =
VAR _Prod =
CALCULATE (
SUM ( Table1[PeriodMins] ),
FILTER ( Table1, Table1[ProductiveSplit] = "Prod" )
)
VAR _Known =
CALCULATE (
SUM ( Table1[PeriodMins] ),
FILTER ( Table1, Table1[ProductiveSplit] = "NP-Known" )
)
VAR _Total =
CALCULATE ( SUM ( Table1[PeriodMins] ), ALLSELECTED ( Table1 ) )
RETURN
DIVIDE ( _Prod + _Total, _Total )
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You may create measures like DAX below.
Prod% =
VAR _Prod =
CALCULATE (
SUM ( Table1[PeriodMins] ),
FILTER ( Table1, Table1[ProductiveSplit] = "Prod" )
)
VAR _Total =
CALCULATE ( SUM ( Table1[PeriodMins] ), ALLSELECTED ( Table1 ) )
RETURN
DIVIDE ( _Prod, _Total )
Known% =
VAR _Prod =
CALCULATE (
SUM ( Table1[PeriodMins] ),
FILTER ( Table1, Table1[ProductiveSplit] = "Prod" )
)
VAR _Known =
CALCULATE (
SUM ( Table1[PeriodMins] ),
FILTER ( Table1, Table1[ProductiveSplit] = "NP-Known" )
)
VAR _Total =
CALCULATE ( SUM ( Table1[PeriodMins] ), ALLSELECTED ( Table1 ) )
RETURN
DIVIDE ( _Prod + _Total, _Total )
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , if you want hybrid table like the one not possible. I logged an idea
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc
There is % wise total option in matrix , column-wise too. right click on periodmins under values and check
refer if those can help
or you can create a new meausre
divide(sum(table[period mins]),calculate(sum(table[period mins]). allexcept(Table,table[productivesplit])))
or
divide(([period mins]),calculate(([period mins]). allexcept(Table,table[productivesplit])))
Thanks @amitchandak for your reply.
This does kind of work, if I display values as %s. However, I have extra columns that I dont need to show, how do I get rid of them (marked x)?
Also, how can I get the 2nd calculation/column: Known% = (Prod + NP-Known) / (NP-Known+ NP-Unknown + Prod) ?
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 30 | |
| 26 | |
| 26 |