cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lalTel20
Helper I
Helper I

Percent of total Error - Interactive

Hi Experts, 

 

I am after retaining the interactivity between visuals and show % of total split by advance shipment. 

 

lalTel20_0-1660573499810.png

When I use formula for base in line 3, the totals come out correct however i loose interactivity. But, when I use formula for base in line 4, I retain the interactivity between visuals. however totals for few months is not coming out right. Whats the best to address this. 
#percentoftotal #dax #calculate

1 ACCEPTED SOLUTION
PurpleGate
Resolver III
Resolver III

I used this on your sample data. 

Measure 2 = 
var curr = SELECTEDVALUE('Table (2)'[Vol])
var base = CALCULATE(sum('Table (2)'[Vol]),REMOVEFILTERS('Table (2)'[ADVANCE SHIPMENT]))
return COMBINEVALUES(",", curr, base)
 
PurpleGate_0-1660642211647.png

It shows the split ok, just doesnt show the full 100% split for the total columns. 

View solution in original post

2 REPLIES 2
PurpleGate
Resolver III
Resolver III

I used this on your sample data. 

Measure 2 = 
var curr = SELECTEDVALUE('Table (2)'[Vol])
var base = CALCULATE(sum('Table (2)'[Vol]),REMOVEFILTERS('Table (2)'[ADVANCE SHIPMENT]))
return COMBINEVALUES(",", curr, base)
 
PurpleGate_0-1660642211647.png

It shows the split ok, just doesnt show the full 100% split for the total columns. 

lalTel20
Helper I
Helper I

This is the sample data - 

Released_YYYMMVolADVANCE SHIPMENTRECLASS DEMAND TYPE
22-Mar345NoNon-Warranty
22-Mar757NoWarranty
22-Mar158YesNon-Warranty
22-Mar687YesWarranty
22-Apr293NoNon-Warranty
22-Apr597NoWarranty
22-Apr163YesNon-Warranty
22-Apr795YesWarranty
22-May254NoNon-Warranty
22-May765NoWarranty
22-May136YesNon-Warranty
22-May589YesWarranty
22-Jun230NoNon-Warranty
22-Jun559NoWarranty
22-Jun167YesNon-Warranty
22-Jun545YesWarranty
22-Jul217NoNon-Warranty
22-Jul555NoWarranty
22-Jul159YesNon-Warranty
22-Jul665YesWarranty
22-Aug131NoNon-Warranty
22-Aug333NoWarranty
22-Aug55YesNon-Warranty
22-Aug177YesWarranty

Helpful resources

Announcements
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Difinity Conference

Difinity Conference 2022

Difinity is the largest Microsoft Data, AI, Power BI, Power Platform and Business Applications Conference in New Zealand.

European Share Point Conference

European Share Point Conference

This conference returns live and in-person in Copenhagen this 28 November-01 December with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors