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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.