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 September 15. Request your voucher.
Hi all
I have a table that looks like this
I am trying to calculate penetration by using a measure, if I have an aggregated matrix view below
I would like to calculate penetration in such a way that segment A is always the denominator, so my final result should look like this.
Solved! Go to Solution.
Hi @Kasonga2018
Please try
Percentage =
VAR Numerator =
SUM ( 'Table'[Population] )
VAR Denominator =
CALCULATE ( SUM ( 'Table'[Population] ), 'Table'[Segmant] = "A" )
RETURN
DIVIDE ( Numerator, Denominator )
Hi @Kasonga2018
Please try
Percentage =
VAR Numerator =
SUM ( 'Table'[Population] )
VAR Denominator =
CALCULATE ( SUM ( 'Table'[Population] ), 'Table'[Segmant] = "A" )
RETURN
DIVIDE ( Numerator, Denominator )
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
12 | |
9 | |
7 |