Using distinctcount on summed rows

hpandersen

New Member
Joined
Dec 12, 2018
Messages
1
Hi.

I have a tabel with a lot of customer financial transactions.
One customer can easily have 100 transactions per year.
Example:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Year[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]2018[/TD]
[TD]250[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]2018[/TD]
[TD]500[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]2018[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]2018[/TD]
[TD]800[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]2018[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]2018[/TD]
[TD]700[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]2018[/TD]
[TD]600[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]2018[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]2018[/TD]
[TD]100[/TD]
[/TR]
</tbody>[/TABLE]


I would like to sum the different transaction per customer per year and the count how many of these summed transaction amount is >1500
In this excample, the sum amount for customer 102 is 1800 and should be counted as one.

I have made this counting in a pivot in Excel, but I really can't figure out how to do it in Power BI.
Any suggestions?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi,

For BI, i'd add a measure AmountSum = CALCULATE(SUM(Tablename[Amount]),Tablename[Year])

Have Customer and Year in a table, and have a visual level filter on AmountSum > 1500
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,313
Members
452,634
Latest member
cpostell

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top