Forum Discussion
Table visual should not breakdown the measure
Hello,
I have below table but I want instead of sales breakdown on Person in table visual it should sum the value for each month even if we have person name in the visual. If the month name scome multiple time the total sum should repeat everytime.
This is my table:
| Person | Month | Sales |
| James | January | $ 345.00 |
| John | March | $ 56.00 |
| Ally | January | $ 24.00 |
| Jeff | June | $ 457.00 |
| John | March | $ 79.00 |
| James | April | $ 346.00 |
| Ally | February | $ 99.00 |
The outome is below:
| Person | Month | Sales |
| James | January | $ 369.00 |
| John | March | $ 135.00 |
| Ally | January | $ 369.00 |
| Jeff | June | $ 457.00 |
| John | March | $ 135.00 |
| James | April | $ 346.00 |
| Ally | February | $ 99.00 |
Kindly provide the measure which just show monthly sales without breaking down to person name regardless of Person name.
Thank you
8 Replies
- parry2k
Super User
Junaid11 add this measure
Sum by Month = CALCULATE ( SUM ( Table[Sales] ), ALLEXCEPT ( Table, Table[Month] ) ) )✨ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
- Junaid11
Helper V
Hello,
Would it be same if month and sales belong to two different tables?
- Ashish_Mathur
Super User
- parry2k
Super User
it should be.
- Junaid11
Helper V
Hello Ashish_Mathur parry2k ,
My actual file is below one.
https://drive.google.com/file/d/1jrmQ3qvbHxxD6qMrXC2_DSC-EACdO7Fm/view?usp=sharing
Can you please a have a look at it and see why this formula is not working. In page 6 as zones have different bedroom from 0-6 and it shows average price. I want same for the right table showing average of each zone and bedroom. Your help would be appreeciated.
Thank you
- Ashish_Mathur
Super User
Hi,
I cannot understand anything in that file - more so because of a different language.