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
eykc
New Member

Tables with different column filters

Hi Everyone,

 

I'm wanting to create an interactive table which allows a user to filter for any two different weeks, and the table will then compare the two weeks selected.. and then from there I want to create columns which calculate growth percentages and other relevant metrics.

 

This is what my data set looks like:

SKU No.Sales $FYWeek Number
01100202201
01

230

202302
01120202401
01150202402
01250202301
02140202201
02130202401
02160202402

 

Effectively I want to be create an interactive table like this and I am able to filter for different weeks of my choosing.

 

SKU Item

Sales $

(Filter Selected: FY 2022, Week 01

Sales $

(Filter Selected: FY 2024, Week 02)

Difference $
00110015050
00214016020

 

Thanks so much!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @eykc,

 

1. You can create two same tables using your dataset.

vdengllimsft_0-1724746869369.png

 

2. Create a SKUNO. dimension table
vdengllimsft_1-1724746881675.png

 

3. Build the relationship between the dimension table and the fact table.

vdengllimsft_2-1724746918665.png

 

4. Then create a measure to calculate the difference between the Sales $ columns of the two tables.

 

 

Difference = SUM(Table2[Sales2 $])-SUM('Table1'[Sales $])

 

 


5.Build the table visual using the SKUNO. Column in the dimension table, the Sales $column for both fact tables, and the Difference measure.
The FY column and the Week Number column of the two fact tables are used to build the slicer for filtering.

vdengllimsft_4-1724747072151.png

 

Best Regards,

Dengliang Li

 

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 @eykc,

 

1. You can create two same tables using your dataset.

vdengllimsft_0-1724746869369.png

 

2. Create a SKUNO. dimension table
vdengllimsft_1-1724746881675.png

 

3. Build the relationship between the dimension table and the fact table.

vdengllimsft_2-1724746918665.png

 

4. Then create a measure to calculate the difference between the Sales $ columns of the two tables.

 

 

Difference = SUM(Table2[Sales2 $])-SUM('Table1'[Sales $])

 

 


5.Build the table visual using the SKUNO. Column in the dimension table, the Sales $column for both fact tables, and the Difference measure.
The FY column and the Week Number column of the two fact tables are used to build the slicer for filtering.

vdengllimsft_4-1724747072151.png

 

Best Regards,

Dengliang Li

 

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

 

miTutorials
Super User
Super User

Helpful resources

Announcements
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!

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