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
Anonymous
Not applicable

Comparing two sets sets of SCD-2 table based on "from date" and "to date"

Hi,

 

I have a SCD-2 table that has basically the following structure:

 

acodato_0-1626188243833.png

 

The user can select two independent snapshot dates "From (A)" and "To (B)" and the Power BI report should display the values of from (A) to (B) in a table like below:

 

acodato_1-1626188328571.png

 

The SCD-2 table has hunbreds of thousands of records and there are many other measures that need to be calculated based on the selected keys (records). I am looking for the most efficient way of doing this.

 

Thanks,

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Anonymous,

You can't use only one table to achieve your requirement.

In my opinion, I'd like to suggest you duplicate the row table and use one as the start and another one as the end to create the table visual to show the results. 

For the date slicer, I think you need to create an unconnected date table as the source of the slicer and use the min date on one table, the max on another table for filter operations.

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

With two tables how do I get to the single report table described above?

Anonymous
Not applicable

Hi @Anonymous,

After I further test with your scenario I found my suggestion can filter the match records but these results can't be merged into one row. They will keep corresponding records part, other parts will display blank.
For example:
row 1: start part, blank
row 2: blank, end part
row 3: start part, blank
row 4: blank, end part

Regards,
Xiaoxin Sheng

Anonymous
Not applicable

HI @Anonymous,

You can't use only one table to achieve your requirement.

In my opinion, I'd like to suggest you duplicate the row table and use one as the start and another one as the end to create the table visual to show the results. 

For the date slicer, I think you need to create an unconnected date table as the source of the slicer and use the min date on one table, the max on another table for filter operations.

Regards,

Xiaoxin Sheng

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