Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello everyone , I am trying to achieve this . I have a table with Date , account , segment , revenue and sector. I am trying to get
total revenue based on Date , Account , segment only.
My total revenue changes everytime there is a new date ,account , segment combination (ignoring the sector) Please help
Solved! Go to Solution.
Hi @Pal03
Here is how you can do it with a calculated column
Total Revenue =
CALCULATE(
SUM('Table1'[Revenue]),
FILTER(
'Table1',
'Table1'[Date] = EARLIER('Table1'[Date]) &&
'Table1'[Account] = EARLIER('Table1'[Account]) &&
'Table1'[Segment] = EARLIER('Table1'[Segment])
)
)Can we do the same in Power query?
Hi @Pal03
Here is how you can do it with a calculated column
Total Revenue =
CALCULATE(
SUM('Table1'[Revenue]),
FILTER(
'Table1',
'Table1'[Date] = EARLIER('Table1'[Date]) &&
'Table1'[Account] = EARLIER('Table1'[Account]) &&
'Table1'[Segment] = EARLIER('Table1'[Segment])
)
)A couple of years let, but thanks for this reply!! it saved my @$$
Thanks a lot!!
Thanks a ton . It works !!
Actually quite excited that it works in power BI. Once again thank you 🙂
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |