Forum Discussion

Sachy123's avatar
Sachy123
Icon for Helper V rankHelper V
5 years ago
Solved

Bottom Lines!

 I am planning to create a report where I need to show various calculations at the bottom of the tables as shown below. E.g.  Region Sales Costs Employees APAC 60000 4000 100 EMEA 3...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Sachy123 ,

     

    Based on my test, since for Sales , the total field is sum(Sales), you could use the default summarization type. And For Costs and Employees ,please try the following formula to create measures:

     

    • Method1:
    Costs1 = IF(HASONEVALUE('Table'[Costs]),SUM('Table'[Costs]),MEDIAN('Table'[Costs]))
    Employees1 = IF(HASONEVALUE('Table'[Employees]),SUM('Table'[Employees]),AVERAGE('Table'[Employees]))
    • Method2:
    Costs2 = IF(ISINSCOPE('Table'[Region]),SUM('Table'[Costs]),MEDIAN('Table'[Costs]))
    Employees2 = IF(ISINSCOPE('Table'[Region]),SUM('Table'[Employees]),AVERAGE('Table'[Employees]))

     The final output is shown below:

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