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
Anonymous
Not applicable

filter DirectQuery table

Hello,
I am using a DirectQuery to pull data onto a table on the report
tblPCodes
----------
pCode perf
xyz 123
gft 67.9
twu 55.31
...

I created banding i.e. range of values to workout he count of pCodes that fall within bands... the measure which does the count of pCodes is called count
This is good so far.
The chart I have created shows the count on y axis and the band on the x axis
All good so far...

Now, I would like to be able to click on the bars in the chart and so the data inside the tblPCodes visual to filter for only those pCodes in that Band. But it does not filter the tblPCodes.
Probably it is to do with the DirectQuery....

In-case it is helpful, the measure that I am using to get the count of the pCodes in tblPCodes is:
count =
COUNTAX(
FILTER(
'Unitised Performance',
[Performance] > SELECTEDVALUE(PerformanceBands[Low]) && [Performance] <= SELECTEDVALUE(PerformanceBands[High])
),
'Unitised Performance'[Portfolio Key]
)

How can I achieve this please?
Thank you

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

Not very clear. Can you explain bit more?
Sample data and expected result  will make it easier for us to understand and  solve your problem.

 

Best Regards,
Community Support Team _ Eason

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