Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
How do i seperate the far right column to show the sum per order # instead of the total for both? All of the values in "Column" for Order# 10001 should be 10 and 10002 should be 12.
Solved! Go to Solution.
Try this :
Column = CALCULATE(SUM(Table1[Revenue]),ALL(Table1), Table1[Order#]= EARLIER(Table1[Order#]), Table1[Item Version]="S")
Thanks
Raj
What about
Column =
CALCULATE (
SUM ( Sheet2[Per Item Revenue] ),
FILTER (
ALL ( Sheet2 ),
Sheet2[Item Version] = "s"
&& Sheet2[Order #] = SELECTEDVALUE ( Sheet2[Order #] )
)
)
Thanks, unfortunately that just returned all blanks.
What about this?
Column = CALCULATE ( SUM ( Sheet2[Per Item Revenue] ), FILTER ( ALL ( Sheet2 ), Sheet2[Item Version] = "s" && EARLIER ( Sheet2[Order #] ) ) )
If that doesn't work, try removing the ALL function:
Column = CALCULATE ( SUM ( Sheet2[Per Item Revenue] ), FILTER ( Sheet2, Sheet2[Item Version] = "s" && EARLIER ( Sheet2[Order #] ) ) )
That's what I had. 😕
Ok, try removing the ALL function. I had an alternate formula in my last post (I added it as an edit), see if that works.
Still getting the total revenue for all "s" revenue instead of it sorting by Order #.
Try this :
Column = CALCULATE(SUM(Table1[Revenue]),ALL(Table1), Table1[Order#]= EARLIER(Table1[Order#]), Table1[Item Version]="S")
Thanks
Raj
Awesome, thanks!
Got it (I think):
Column = CALCULATE ( SUM ( Sheet2[Per Item Revenue] ), FILTER ( Sheet2, Sheet2[Order #] = EARLIER ( Sheet2[Order #] ) && Sheet2[Item Version] = "S" ) )
Good job @Anonymous , Your logic was right, just syntax needed some correction.
Thanks
Raj
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
63 | |
63 | |
52 | |
36 | |
36 |
User | Count |
---|---|
80 | |
71 | |
58 | |
45 | |
44 |