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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
grthompson76
New Member

How to turn tables based on dates into selectable date fields for your visualisations

Hi All

I am a new user to Power BI and would really appreciate some help. I have imported and transformed an Excel spreadsheet based on a specific date (24052022 = DDMMYYY). I have now imported an additional spreadsheet based on the 14062022. How do I create a linkage to enable my PowerBI visuals to be pointed at either dates based on some sort of dropdown?

Thanks in advance.

Regards

Gavin

grthompson76_0-1655307298341.png

 

 

1 ACCEPTED SOLUTION
rohit_singh
Solution Sage
Solution Sage

Hi @grthompson76 ,

You can try something like below. I have created two sample tables named 14062022 and 24052022.
Easiest way is to add a column to each table that contains the query name. You can do this manually by adding a new column, or dynamically in Power Query by creating a parameter DDMMYYY, and adding a custom column = DDMMYYY

rohit_singh_0-1655308489323.png

rohit_singh_1-1655308510672.png

 

Next, perform a union operation in DAX to append these two tables. You will now get a single table with data from both tables, and an additional column that identifies the file.

rohit_singh_2-1655308586846.png

Now in a blank table, add fields from the new union table, and use the filename as a slicer. When you select a filename, only data from that file will be filtered out and displayed.

rohit_singh_3-1655308747227.png

 

Kind regards,

Rohit


Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂



View solution in original post

1 REPLY 1
rohit_singh
Solution Sage
Solution Sage

Hi @grthompson76 ,

You can try something like below. I have created two sample tables named 14062022 and 24052022.
Easiest way is to add a column to each table that contains the query name. You can do this manually by adding a new column, or dynamically in Power Query by creating a parameter DDMMYYY, and adding a custom column = DDMMYYY

rohit_singh_0-1655308489323.png

rohit_singh_1-1655308510672.png

 

Next, perform a union operation in DAX to append these two tables. You will now get a single table with data from both tables, and an additional column that identifies the file.

rohit_singh_2-1655308586846.png

Now in a blank table, add fields from the new union table, and use the filename as a slicer. When you select a filename, only data from that file will be filtered out and displayed.

rohit_singh_3-1655308747227.png

 

Kind regards,

Rohit


Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂



Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.