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
pitucc
Helper I
Helper I

Sum, slicer, filter and average and weighted index

Hello All,

 

I am trying to compute weigthed values that change dynamicaly with the slicer i selectin my report

 

One table, 4 column : Name; region, price ; Volume 

 

I want to compute the weighted price  by volume  

for "a" :  5* 100  / ( sum all volume = 755) 

"b": 1* 105 / 755 

etc... 

I managed to have something that works but if i choose to slice by region for instance, my weighted price  by volume  remain the same same if I want to select only a b c with a slicer. I tried with calculate and  allselected, all, allexecpt, but i getting crazy... 

 

Thanks for your help 

Capture.PNG

1 ACCEPTED SOLUTION
pitucc
Helper I
Helper I

finally found a solution : 

SUMX(ALLSELECTED(Table1);Table1[Volume])

 

View solution in original post

1 REPLY 1
pitucc
Helper I
Helper I

finally found a solution : 

SUMX(ALLSELECTED(Table1);Table1[Volume])

 

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.