Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
 
					
				
		
Hi all,
I have 8 csv files (each for a different country) with two columns, date and price. I want to make a simple column chart x-axis=date and y-axis=price. Wondering if I can use a slicer so it only shows the values for the country selected.
I've done this before where all the countries and data are in a single csv file, using measures with FILTER and SELECTEDVALUE. But was wondering if there was another way if they are in seperate queries, without having to merge them or do something like bookmarks.
Thanks!
Solved! Go to Solution.
Combining all of the countries into one table in the query editor is probably the best solution. You could do it with some sort of switching measure but that's more work than consolidating your data.
 
					
				
		
Hi @Anonymous,
As AlexisOlson said, you can try to combine these CSV files if they have similar data structures.
If you want to clarify where these records are from, you can add a custom column to these files before combining operations to remark the source file name.
After these steps, you can use the 'source filename' field to create a slicer/filter to control which records are displayed.
Regards,
Xiaoxin Sheng
Combining all of the countries into one table in the query editor is probably the best solution. You could do it with some sort of switching measure but that's more work than consolidating your data.
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | 
| User | Count | 
|---|---|
| 13 | |
| 10 | |
| 10 | |
| 9 | |
| 8 |