Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
My dynamically selected_splicer value is not filtering my postgres data table rows correctly.
I can singly select my selected_text in the splicer table and create a measure as
Select_Slicer = values('public security'[ticker])
I can display the selected_text in a card just so I coud make sure the slicer would work.
My data does not show up in the chart from my filtered postgres table because of the [Select Slicer]
Stock Prices = CALCULATE( AVERAGE('public daily_price'[adj_close_price]), filter('public security'[ticker], 'public security'[ticker] = [Select_Slicer]))
I can get my data to show when I statically filter my Stock prices as to "F" for example. However I would like to do this with my dynamically with my slicer.
Stock Prices = CALCULATE( AVERAGE('public daily_price'[adj_close_price]), 'public security'[ticker] = "F")
The selected value and filtered value is a text so I don't think it is a datatype issue.
@gredsq456
Your code looks fine, can you check the relationship between the two tables?
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Here are my two tables. This is a "natural" relantionship from postgres.
- security (which I use to select a the "ticker" (id AND ticker are unique and linked)
- daily_price (adj_close_price). ticker_id (is many). The daily_price table is by row unique :
the (ticker, price_date, adj_close_price)
The only thing I could suspect is if I directly select the "id" instead of the "ticker" with is one for one in the security table as to pull my data.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |