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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PeterL1
Helper I
Helper I

Row Total that moves with sort on average

Hi, 


I am currently trying to create a row total that would move when sorted alphabetically by an average.

 

The total needs to move with the Groups when i sort the Average per SQM, so that i can easially see what group is underperfoming. 

I cannot find any posts about this and i cannot get it to work myself.

There is not currently a total in my database, so i will have to make one up.

 

Any help is appreciated

 

GROUPSSQMSALESAVERAGE PER SQM
Group96888000001,162.8
Group5164150000914.6
Group17256230000898.4
TOTAL29222535000867.6
Group207160000845.1
Group11215180000837.2
Group47260000833.3
Group1465000833.3
Group16132110000833.3
Group19168140000833.3
Group1123100000813.0
Group12123100000813.0
Group7248200000806.5
Group106250000806.5
Group211490000789.5
Group158970000786.5
Group85440000740.7
Group39570000736.8
Group134830000625.0
Group66840000588.2
Group181261000079.4
2 ACCEPTED SOLUTIONS
Zubair_Muhammad
Community Champion
Community Champion

Hi @PeterL1

 

Try this

Go to Modelling Tab>>>>>NEW TABLE

 

NEW Table =
UNION (
    YourTable,
    ROW (
        "GROUPS", "TOTAL",
        "SQM", SUM ( YourTable[SQM] ),
        "SALES", SUM ( YourTable[SALES] ),
        "AVERAGE PER SQM", DIVIDE ( SUM ( YourTable[SALES] ), SUM ( YourTable[SQM] ) )
    )
)

View solution in original post

5 REPLIES 5
MFelix
Super User
Super User

Hi @PeterL1,

 

Why do you need to have the total on your table?

 

I would do a mesaure to highlight the groups below or up:

 

Average = DIVIDE( SUM(Groups[SALES]), SUM(Groups[SQM]))

Group below =
IF (
    [Average] < CALCULATE ( [Average], ALLSELECTED ( Groups[GROUPS] ) ),
    "Below average",
    BLANK ()
)

In this case you can make this a variable value and interact with a slicer instead of fixing your table to one value:

below.png

 

 

Regards,

Mfelix

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @MFelix,

 

That is the way that we have been analysing reports where i work for a long time, however this has been done in Excel where it is easy to sort by a made total.

Dont want to confuse people by changing a report around that they are used to.


Thanks

Peter

 

Hi @PeterL1,

 

Just giving you different options in the PBI. You are moving to a BI platform and the way of interacting with the reports is different in concept and in form, but accept that you don't want to confuse people.

 

It's a mind set that is difficult to change.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Zubair_Muhammad
Community Champion
Community Champion

Hi @PeterL1

 

Try this

Go to Modelling Tab>>>>>NEW TABLE

 

NEW Table =
UNION (
    YourTable,
    ROW (
        "GROUPS", "TOTAL",
        "SQM", SUM ( YourTable[SQM] ),
        "SALES", SUM ( YourTable[SALES] ),
        "AVERAGE PER SQM", DIVIDE ( SUM ( YourTable[SALES] ), SUM ( YourTable[SQM] ) )
    )
)

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors