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

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

Reply
Anonymous
Not applicable

Using two date slicers on a dataset to create one visual

I have a dataset like below

 

Doc DateDoc TypeDoc NumInvoice datePayment dateCustomerDebit $Credit $
01-Jun-22InvoiceD101-Jun-22 C11000 
10-Jun-22InvoiceD210-Jun-22 C1500 
15-Jun-22PaymentD3 15-Jun-22C1 100
17-Jun-22PaymentD4 17-Jun-22C1 200
20-Jun-22InvoiceD520-Jun-22 C12000 
23-Jun-22InvoiceD623-Jun-22 C11500 
29-Jun-22InvoiceD729-Jun-22 C13000 
03-JulPaymentD8 03-JulC1 2000
08-Jul-22PaymentD9 08-Jul-22C1 1000
15-Jul-22PaymentD10 15-Jul-22C1 1500

 

Problem statement:

I need to make one visual with two slicers - Invoice date and payment date, which will show the invoices and payments for the corresponding periods. For example, if I choose invoice date as 01-Jun to 30-Jun and payment date as 01-Jun to 15-Jul, then the following result should be displayed - All invoices within the invoice date range and all payments in the payment date range.

 

 

Basically I would have two different date filters on the same table. How do I go about doing this.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

In addintion to Greg_Deckler's reply, I suggest you to create unrelated date tables and use measure to filter your measure.

Invoice date = CALENDARAUTO()
Payment date = CALENDARAUTO()

Measure:

Measure = 
VAR _Invoice_date = VALUES('Invoice date'[Date])
VAR _Payment_date = VALUES('Payment date'[Date])
RETURN
IF(MAX('Table'[Invoice date]) IN _Invoice_date ||MAX('Table'[Payment date]) IN _Payment_date,1,0)

Add this measure into your table visual and set it to show items when value =1.

Result is as below.

RicoZhou_0-1661416824522.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

In addintion to Greg_Deckler's reply, I suggest you to create unrelated date tables and use measure to filter your measure.

Invoice date = CALENDARAUTO()
Payment date = CALENDARAUTO()

Measure:

Measure = 
VAR _Invoice_date = VALUES('Invoice date'[Date])
VAR _Payment_date = VALUES('Payment date'[Date])
RETURN
IF(MAX('Table'[Invoice date]) IN _Invoice_date ||MAX('Table'[Payment date]) IN _Payment_date,1,0)

Add this measure into your table visual and set it to show items when value =1.

Result is as below.

RicoZhou_0-1661416824522.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Greg_Deckler
Community Champion
Community Champion

@Anonymous Use disconnected tables for your slicers. Then you can implement Complex Selector. The Complex Selector - Microsoft Power BI Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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