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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

All Selected Formula Help

Hello,

 

Any suggestions on creating a measure to show the % above/below the total. I.E.: Optimized is 58% above total, fresh is 5% above total, etc. I was thinking of showing a seperate matrix table below with the formula. Would I need to use the All Selected formula as I have two slicers above affecting the visuals on the page?

 

My current measure in the below table is taking Sales $/STR:

Sales $/STR = SUM('Holiday 2020'[Sales $])/DISTINCTCOUNT('WOW Wall - Holiday 2020'[Store + Name])

 

Thank you!

 

SharedScreenshot.jpg

3 REPLIES 3
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Has your problem been solved?

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try this.

Measure = 
VAR x = SUMX( ALLSELECTED(table), [Sales $/STR ] )
RETURN
DIVIDE(
    [Sales $/STR ] - x,
    x
)

If not, please provide sample data or .pbix file.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

AlB
Community Champion
Community Champion

Hi @Anonymous

Yep, ALLSELECTED(). You could use this measure in a matrix with the same columns as the one you have and nothing on the rows:

Measure =
DIVIDE (
    [Sales $/STR],
    CALCULATE ( [Sales $/STR], ALLSELECTED ( Table1[FieldInColumnsOfYourMatrix] ) )
)

 and format as % if necessary

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.