Hi Guys,
Anyone know how I can create measures that give the percentage figures as shown in the pivot table below? The category totals are 125 and 275 and whenever i try to create a percentage total of each subcategory ie Plymouth or SHWD, it keeps dividing the subcategory numerator total by the respective subcategory denominator total (15, 110, 210 and 65). I need a measure that can divide the subcategory numerator total by the respective category denominator total instead (125 or 275) as shown on the pivot table. I have also included the pbix file and when you look at it, it shows the percentage figures for each subcategory when its numerator total is divided by the subcategory denominator total and this is not what i want to see. I need it to be abe to calculate the percentages just as it is on the pivot table.
Any help will be highly appreciated.
https://1drv.ms/u/s!AhEw68UYqcc6gx0mgWUJ4xXXbX7v?e=RtGyph
pivot table
Solved! Go to Solution.
Hi try this
Measure =
var cat =SELECTEDVALUE (category Column)
return
if(ISINSCOPE(sub-category Column),
sum of numberator / CALCULATE(sum of denominator, REMOVEFILTER(sub-category column), category Column = cat),
sum of numbertor/sum of denominator)
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
You may download my PBI file from here.
Hope this helps.
You are welcome.
See updated file by link below
https://drive.google.com/file/d/15k1M6f5OC-IVJo9uMgoY55gdoNzqR5ew/view?usp=sharing
Hi try this
Measure =
var cat =SELECTEDVALUE (category Column)
return
if(ISINSCOPE(sub-category Column),
sum of numberator / CALCULATE(sum of denominator, REMOVEFILTER(sub-category column), category Column = cat),
sum of numbertor/sum of denominator)
User | Count |
---|---|
103 | |
88 | |
69 | |
50 | |
48 |
User | Count |
---|---|
148 | |
94 | |
79 | |
71 | |
70 |