Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors