Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
PEO
Frequent Visitor

Calculating balances as per a date filter

Hey Guys,

Happy Friday! I hope you are doing well. I need your help regarding the following requirement.

There is a table containing transactions, as follows:

DATE

EMPLOYEE

TYPE

AMOUNT

5/22/2024

WKR01

A

-10

5/23/2024

WKR01

A

20

5/23/2024

WKR01

B

100

5/24/2024

WKR01

B

30

5/25/2024

WKR01

B

-40

5/23/2024

WKR02

B

-50

5/24/2024

WKR02

B

60

5/22/2024

WKR02

C

100

5/23/2024

WKR02

C

-50

 

The report should show the balances of AMOUNTs per EMPLOYEE, TYPE based on DATE. Example

Date filter = 5/23/2024

Expected result

EMPLOYEE

TYPE

BALANCE

WKR01

A

10

WKR01

B

100

WKR02

B

-50

WKR02

C

-50

 

Thanks for your help!

Regards,

PEO

1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

Hi @PEO ,

You can achieve your required output in many different ways and one of them is by writing a measure like below, which results in a visual which you are after.  

DataNinja777_1-1717165327698.png

 

DataNinja777_0-1717165198668.png

I attach an example pbix file.  

View solution in original post

3 REPLIES 3
DataNinja777
Super User
Super User

Hi @PEO ,

You can achieve your required output in many different ways and one of them is by writing a measure like below, which results in a visual which you are after.  

DataNinja777_1-1717165327698.png

 

DataNinja777_0-1717165198668.png

I attach an example pbix file.  

Hi @DataNinja777 ,

It worked as expected. Thanks for your help.

Regards,

Peter

Morning @DataNinja777 ,

Thanks for your quick response. I will take a look at it and get back to you.

Regards,

Peter

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors