The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I'm wondering how I can calculate the percentage of one value within another value, when they're both in the same column?
For example, if I want to find out the percentage of 3rd Pty_Ind_other within Ind_other_total?
Thanks in advance!
Solved! Go to Solution.
@Dubu44 , You can create a measure like
Divide(
calculate(count(Table[Variable Desc]), filter(Table, Table[Variable Desc] = "3rd Pty_Ind_other")) ,
calculate(count(Table[Variable Desc]), filter(Table, Table[Variable Desc] = "Ind_other_total"))
)
@Dubu44 , You can create a measure like
Divide(
calculate(count(Table[Variable Desc]), filter(Table, Table[Variable Desc] = "3rd Pty_Ind_other")) ,
calculate(count(Table[Variable Desc]), filter(Table, Table[Variable Desc] = "Ind_other_total"))
)
User | Count |
---|---|
79 | |
78 | |
37 | |
33 | |
31 |
User | Count |
---|---|
93 | |
81 | |
59 | |
49 | |
49 |