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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors