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
miinseon
Helper I
Helper I

sum amt when the filter date and the target date are different and group by staff

My data has multiple dates, including booking date, payment date, and refund date. See the image below.


Sometimes the booking date and payment date are different.

For example, a customer comes in for a consultation today and pays tomorrow.

 

And i have a staff member in charge of it.

I want the slicer criteria to be the appointment date, and the sum of the payment amounts corresponding to the slicer to be by staff.
Only staff A is actually paying, but all staffs are exposed. Please advise how to fix this.

 

I'm attaching the pbix file as well.

pbix

 

miinseon_0-1720403270569.png

miinseon_1-1720403278186.png

 

1 ACCEPTED SOLUTION

Hello @miinseon 

 

basically you want to show a value that has been filtered out by slicer, I am not sure if you can do this.

 

your slicer is connected to 'RESERVE_DATE'. There is no value for staff A on 2July2024 in 'RESERVE_DATE' (staff A has value on 1July2024 in 'RESERVE_DATE').

Irwan_0-1720416358253.png

 

So, here are the options: 
1. Change relationship to 'PAYMENT_DATE'.

2. If you dont want to re-arrange current table/relationship but insist to show the visual as you want, then i can offer what i did in my project.

- make another dummy table to visualize this conflict. Because this is dummy table, then you can create another relationship to 'PAYMENT_DATE' and will not change the current relationship in Sheet1 ('RESERVE_DATE').

- create exact measure and visualize the data on the dummy table (not the Sheet1 table since the relationship on Sheet1 is still on 'RESERVE_DATE').

 

Irwan_1-1720416975968.png

Irwan_2-1720417021518.png

Irwan_3-1720417076776.png

 

If this method doesnt suit your, maybe other Power BI experts have more effective solution.

 

Thank you.

View solution in original post

6 REPLIES 6
Irwan
Super User
Super User

Hello @miinseon 

 

ah, i see the problem.

is this what you need?

Irwan_0-1720408127127.png

 

if so, then you might want to change column relationship.

initially it was set up to 'RESERVE_DATE'

Irwan_1-1720408196285.png

try changing it into 'PAYMENT_DATE'

Irwan_2-1720408246398.png

 

As you can see below, staff A has payment date on 2July2024, but the relationship was connected to 'RESERVE_DATE' which is 1July2024. This makes the data doesnt show up because the relationship says it is 1July2024 from 'RESERVE_DATE', not 2July2024 from 'PAYMENT_DATE'.

Irwan_3-1720408415008.png

 

is it possible to change the relationship? or does the relationship have to be in 'RESERVE_DATE'?

 

Hope this will help you.

Thank you.

Hellow @Irwan 
Actually i have more KPIs related reserve date like reserve_cnt and show each row data based on reserve_data

so i think i will be better relationship in reserve_date

 

Thank you 🙂

Hello @miinseon 

 

basically you want to show a value that has been filtered out by slicer, I am not sure if you can do this.

 

your slicer is connected to 'RESERVE_DATE'. There is no value for staff A on 2July2024 in 'RESERVE_DATE' (staff A has value on 1July2024 in 'RESERVE_DATE').

Irwan_0-1720416358253.png

 

So, here are the options: 
1. Change relationship to 'PAYMENT_DATE'.

2. If you dont want to re-arrange current table/relationship but insist to show the visual as you want, then i can offer what i did in my project.

- make another dummy table to visualize this conflict. Because this is dummy table, then you can create another relationship to 'PAYMENT_DATE' and will not change the current relationship in Sheet1 ('RESERVE_DATE').

- create exact measure and visualize the data on the dummy table (not the Sheet1 table since the relationship on Sheet1 is still on 'RESERVE_DATE').

 

Irwan_1-1720416975968.png

Irwan_2-1720417021518.png

Irwan_3-1720417076776.png

 

If this method doesnt suit your, maybe other Power BI experts have more effective solution.

 

Thank you.

HI @Irwan 
It's not 100% right for me, but it seems like a good way to go.

I'll give it a try.

Thank you so much

Irwan
Super User
Super User

Hello @miinseon 

 

From what i have seen in your DAX, looks like you are using ALL that makes all staff got same value.

Irwan_5-1720406427779.png

and if ALL function was removed and change ALL into table, it will work (only show related staff).

Irwan_6-1720406525892.png
Irwan_7-1720406547538.png
Irwan_8-1720406567284.png
Irwan_9-1720406586568.png

 

 Hope this will help you.

Thank you.

The method you told me worked.
However, when I changed the slicer date to July 2, I should get data for 2 agents.
The relationship is set to the reserve date, but the actual graph should only take into account the payment date.
That's why I tried using all in the first place.

Can you give me a solution for this?

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.