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
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] ) )
    )
)

Regards
Zubair

Please try my custom visuals

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] ) )
    )
)

Regards
Zubair

Please try my custom visuals

Hi @PeterL1

 

131.png


Regards
Zubair

Please try my custom visuals

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.