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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
vavida52
New Member

Data filtering issue

Hello,

 

I am quite new to Power BI and I want to gain experience by implementing my own private projects. I want to create a dashboard where I can visualize stocks in my portfolio. Upfront, I have an automation which captures stock values for each stock in my portfolio on a daily basis. Values are stored in an Excel file (see table 1).

 

I tried to visualize the stock value against the date which worked fine. In the next step I wanted to use a treemap (by using the stock names in table 2) as a nicer looking filter where I can select the stock/s I want to display. And here comes the problem. 

 

I am not able to filter to any stock name. The only thing I can filter for is the date which shows a data set of all stock values for that day but I want to filter for a specific stock and see the graph across a time period like we know in stock websites or apps.

 

I was thinking that I could connect both tables in the data model but it does not seem to work. Any advise on this? Or is it even impossible to achieve what I was thinking of?

 

Thanks in advance!

 

1.png2.png

 

 

 

1 ACCEPTED SOLUTION

Thank you. I solved the issue myself. Problem is the format of the table 1 which with the wrong structure. I had to transpose the table and put and accept that I would have multiple rows with identical stock name. Now everything works as expected (I can filter the page via the treemap).

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @vavida52,

Treemap visual normally will interaction with other visult based on its category fields and it not suitable to work as date range filter.
If you want it apply filter to the date range, I'd like to suggest you add a slicer with date field as source, and use slicer mode 'between' to apply filter effects.

Slicers in Power BI - Power BI | Microsoft Learn

Regards,

Xiaoxin Sheng

Thank you. I solved the issue myself. Problem is the format of the table 1 which with the wrong structure. I had to transpose the table and put and accept that I would have multiple rows with identical stock name. Now everything works as expected (I can filter the page via the treemap).

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors