Forum Discussion
ldgary
1 year agoNew Member
Getting a table total into a measure
I have a Power BI report that has some complicated measures, most of which I've figured out. One that I can't seem to get is a measure that shows the number of transactions for those sales within a s...
- 1 year ago
After reviewing the screenshot again, it looks like we first need to aggregate the sales by SellToNo. The previous measure was aggreageting by the Invoice. Please try this one instead:
Transaction Count > $100,000 = SUMX( FILTER( VALUES(Fact_Invoice[SellToNo]), CALCULATE(SUM(Fact_Invoice[NetSales])) > 100000 ), [TY Invoice Count] )
ldgary
1 year agoNew Member
It's still blank.
SamsonTruong
1 year agoSuper User
After reviewing the screenshot again, it looks like we first need to aggregate the sales by SellToNo. The previous measure was aggreageting by the Invoice. Please try this one instead:
Transaction Count > $100,000 =
SUMX(
FILTER(
VALUES(Fact_Invoice[SellToNo]),
CALCULATE(SUM(Fact_Invoice[NetSales])) > 100000
),
[TY Invoice Count]
)
- ldgary1 year agoNew Member
That was it, and it was so simple, thank you!
- SamsonTruong1 year agoSuper User
Awesome, glad to hear it worked!