cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors