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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Show rows between two dates from different tables

Hello,

 

I have requirement where I need to show rows in table visual based on 2 date slicers. I have 2 tables with data like this.

Table 1

ID  Value Status        Date             FK_ID

1    2        Issued    2019-03-24    guid2

2    5        Claimed 2019-03-27    guid4

 

 

Table 2

 

FK_ID  Status            Date 

guid2 Issued         2019-03-24

guid4 Issued         2019-03-20

guid4 Claimed      2019-03-27

 

Now I want to show data based on 2 dates selected startdate slicer(table 1 date column) and Recondate slicer(table 2 date column). my requirement is to have 2 slicers it cannot be combined.

 

I need to see Issued status rows as of date selected.

For example if startdate is set to 2019-03-25 and ReconDate is set to 2019-03-25 then I need to see 2 rows like below

ID IssuedDate       Value

1  2019-03-24       2

2  2019-03-20       5

 

But when my recondate is set to 2019-03-28 and start being the same as above I need to see only 1 row because ID 2 has Claimed status as of 2019-03-28. So it should look like below

 

ID IssuedDate       Value

1  2019-03-24       2

Thanks in advance.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I have figure it out.

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Do you create any relationship between Table1 and Table2 in Power BI?

As for your example, i can't find the common rule from that.

 

Based on my assumption, the rule of your example is as below, please check if i understand you correctly,

1. startdate :2019-03-25, ReconDate:2019-03-25,

It show which "IssuedDate" <=startdate ??

2.startdate :2019-03-25, ReconDate:2019-03-28,

It show which "Claimed " <=ReconDate???

 

If i don't understand you correctly, please correct me.

 

Best Regards

Maggie

 

Anonymous
Not applicable

I have figure it out.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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