Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 216485

% Column Total based on Slicer

$
0
0

Hi - Help please.

I have the table below with slicers to help select one SCode

The table below then returns Total RxItems = SUM(UploadRxData[RxItems]) from each PCode for that SCode

 

I am trying to return 2 measures:

% Surgery = DIVIDE(UploadRxData[Total RxItems],UploadRxData[Surg Total]) (eg 1st row 8377/15258 = 54.9%)

% Pharm = DIVIDE(UploadRxData[Total RxItems],UploadRxData[Pharm Total]) (eg 1st row 8377/9182 = 91.2%)

 

Pharm Total = CALCULATE(SUM(UploadRxData[RxItems]),ALL(UploadRxData[SCode]))

Surg Total = CALCULATE(SUM(UploadRxData[RxItems]),ALL(UploadRxData[PCode]))

 

The issue looks to be with Pharm Total and Surg Total

 

(I have a separte date table and the UploadRxData table has only 4 colums RxDate, SCode, PCode and RxItems)

 

BPI1.png

 


Viewing all articles
Browse latest Browse all 216485

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>